diff options
| author | Zach DeCook <zachdecook@librem.one> | 2025-10-15 19:04:55 -0400 |
|---|---|---|
| committer | Zach DeCook <zachdecook@librem.one> | 2025-10-15 19:04:55 -0400 |
| commit | 3214979626dbb21ec43f1040a21f7b7ec0e55b82 (patch) | |
| tree | 83a43541187e242e9fa932112be335d78b039f71 /makeplan.sh | |
| parent | c07d7af7266b9436c8aa86ca6394678d1a75fa55 (diff) | |
| download | cgi-bin-3214979626dbb21ec43f1040a21f7b7ec0e55b82.tar.gz | |
get newplan.tsv
Diffstat (limited to 'makeplan.sh')
| -rw-r--r-- | makeplan.sh | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/makeplan.sh b/makeplan.sh index 71d1acb..8a0637d 100644 --- a/makeplan.sh +++ b/makeplan.sh @@ -1,11 +1,12 @@ #!/bin/sh -day=$(date +%j) -echo "# Day $day/365" +day=$(date +'%j') +day_human=$(date +'%B %d') +echo "# Reading for $day_human" -ot="$(grep "^$day" "$1" | cut -f2)" -nt="$(grep "^$day" "$1" | cut -f3)" -ps="$(grep "^$day" "$1" | cut -f4)" -pr="$(grep "^$day" "$1" | cut -f5)" +nt="$(grep "^$day_human" "$1" | cut -f3)" +ot="$(grep "^$day_human" "$1" | cut -f2)" +ps="$(grep "^$day_human" "$1" | cut -f4)" +pr="$(grep "^$day_human" "$1" | cut -f5)" if [ -e /srv/gemini/gemini.zachdecook.com/oyb/$day.mp3 ]; then echo "=> /oyb/$day.mp3 Listen to today's reading by Zach!" |
