This commit is contained in:
kento2 2026-01-26 16:27:53 +01:00
parent dc7daed18b
commit 9b119fb54b
4 changed files with 41 additions and 2 deletions

View file

@ -4,8 +4,8 @@ JOURNAL="$HOME/nfs/idk"
tmp="$(mktemp /tmp/journal.XXXXXX)"
d="$(date -I)"
grep "$d" "$JOURNAL" || printf "\n%s\n" "$d" > "$tmp"
grep "$d" "$JOURNAL" || printf "%s\n" "$d" > "$tmp"
nvi "$tmp"
(cat "$tmp" | tee -a "$JOURNAL") && rm "$tmp"
(echo; cat "$tmp" | tee -a "$JOURNAL") && rm "$tmp"
tail "$JOURNAL"