From 4e63928a59d2c15c582f2bf1eea075bdf0ffb638 Mon Sep 17 00:00:00 2001 From: dozens Date: Wed, 17 Jan 2024 11:41:56 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- justfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/justfile b/justfile index fabc149..eebfe6c 100644 --- a/justfile +++ b/justfile @@ -65,3 +65,17 @@ upload: # build and rss all: markdown gemini index upload rss + +# new script +new: + #!/usr/bin/env sh + count=$(recsel -c db/database.rec) + read -p "first line: " top + read -p "second line: " bottom + printf -v id "%05d" $((++count)) + recins --verbose -t comic \ + -f "top" -v "$top" \ + -f "bottom" -v "$bottom" \ + -f "id" -v "$id" \ + -f "date" -v "$(date -I)" \ + db/database.rec