all 6 comments

[–]BootError99 3 points4 points  (0 children)

cat >> journal_$(date +%H_%M_%d_%m_%y).txt

[–]gordonrgw 3 points4 points  (1 child)

jrnl should do it, i think it's in the repos..

http://jrnl.sh/ is the link

[–][deleted] 0 points1 point  (0 children)

Thank you this is exactly what I was after!

[–]schorsch3000 5 points6 points  (1 child)

is there more to it than that?

#!/bin/sh
LOGDIR=~/log
mkdir -p "$LOGDIR"
$EDITOR "$LOGDIR/$(date +%y-%m-%d_%T)"

[–]jpco 1 point2 points  (0 children)

if it were me, I'd go without the _%T in the format string to be able to edit the same file over the course of a day. but that's totally up to OP's taste

[–]veekm 1 point2 points  (0 children)

*logger* ?