From 01aecb888eee248c1d6cd256cdaff7cfda167d89 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Tue, 11 Apr 2023 10:23:34 -0400 Subject: [PATCH] command to add translations to 30sec markdown file --- add_to_file.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 add_to_file.sh diff --git a/add_to_file.sh b/add_to_file.sh new file mode 100644 index 0000000..8c71d93 --- /dev/null +++ b/add_to_file.sh @@ -0,0 +1,4 @@ +#!/bin/bash +#$PG -t -A -c "SELECT '## 2023-03-31' UNION ALL SELECT ' - ' ||(message->>'text') from rlarp.thirtysec where mdate >= '2023-03-31'" | fold -s -w 80 | sed -E 's/^([^ -])/ \1/;s/^(-{1,2} )/ \1/;s/^/ /' + +$PG -t -A -c "SELECT '## 2023-04-06' UNION ALL SELECT '- ' ||mdate||' [[]] '||(message->>'text') from rlarp.thirtysec where mdate >= '2023-04-06'" >> /mnt/c/Users/PTrowbridge/hc_notes/30sec.md