diff options
author | ubq323 <ubq323@ubq323.website> | 2023-05-28 14:44:27 +0100 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2023-05-28 14:44:27 +0100 |
commit | 098c750242a9c4b297e05aa91f82d97f085aebbd (patch) | |
tree | c32ba34d4ba96dc52626f19f34d15faba19a9d2c /bin/journal | |
parent | ffb0eea576135599eb565e70be8404ae74db99e2 (diff) |
add some scripts
Diffstat (limited to 'bin/journal')
-rwxr-xr-x | bin/journal | 12 |
1 files changed, 12 insertions, 0 deletions
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" |