simple, dated, one line note taker, in one line of posix sh...

#!/bin/sh

printf '%s\n' "$(date +%d/%m/%y): $*" >> ~/n

name it n,

make it executable,

put it in ~/bin.

use like: n this is my note

writes to txt file named n in ~/

shout out to dylan araps. wherever he is.

Reply to this note

Please Login to reply.

Discussion

Reminds me of twtxt (https://github.com/buckket/twtxt), the idea of the format is similar except the date format is less ambiguous in terms of timezones.

(quoting the docs: "Don’t like the official client? Tweet using echo -e "`date -Im`\tHello world!" >> twtxt.txt!")

Just tested this: alias n='echo -e "$(date -Im)\t$*" >> ~/n'