From 098c750242a9c4b297e05aa91f82d97f085aebbd Mon Sep 17 00:00:00 2001 From: ubq323 Date: Sun, 28 May 2023 14:44:27 +0100 Subject: add some scripts --- bin/journal | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 bin/journal (limited to 'bin/journal') diff --git a/bin/journal b/bin/journal new file mode 100755 index 0000000..3171a5e --- /dev/null +++ b/bin/journal @@ -0,0 +1,12 @@ +#!/bin/sh + +j=~/.journal + +t="$(mktemp)" +"$EDITOR" "$t" + + +echo >>"$j" +date +'%Y-%m-%d %H:%M' >>"$j" +printf '%s\n' '----------------' >>"$j" +cat "$t" | sed -e 's/^/\t/' >>"$j" -- cgit v1.2.3