scripts for my gemini capsule
Diffstat (limited to 'makeplan.sh')
-rw-r--r--makeplan.sh13
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!"