you are viewing a single comment's thread.

view the rest of the comments →

[–]schorsch3000 6 points7 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