#!/bin/sh # life log date="$(date "+%Y-%m-%d %H:%M:%S")" l="$(printf '' | xprompt "$date")" [ "$l" = "" ] && exit printf '%s\t%s\n' "$date" "$l" >> ~/log