diff options
| author | Zach DeCook <zachdecook@librem.one> | 2021-02-24 07:47:31 -0500 |
|---|---|---|
| committer | Zach DeCook <zachdecook@librem.one> | 2021-02-24 07:47:31 -0500 |
| commit | e7ec12e5032dd11e67c5a6f3360eb790f4c28fa4 (patch) | |
| tree | 3d7c463a155028ef094e4d50d7f5e81a7039ae9d | |
| parent | c3b3e59317d43a95c7d9593016d68b4dbb532a6d (diff) | |
| download | cgi-bin-e7ec12e5032dd11e67c5a6f3360eb790f4c28fa4.tar.gz | |
plan: add script for cron to make page with today's readings
| -rw-r--r-- | makeplan.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/makeplan.sh b/makeplan.sh new file mode 100644 index 0000000..8853728 --- /dev/null +++ b/makeplan.sh @@ -0,0 +1,21 @@ +#!/bin/sh +day=$(date +%j) +echo "# Day $day/365" + +ot="$(grep "^$day" "$1" | cut -f2)" +nt="$(grep "^$day" "$1" | cut -f3)" +ps="$(grep "^$day" "$1" | cut -f4)" +pr="$(grep "^$day" "$1" | cut -f5)" + +echo "# Old Testament Reading" +gmni "gemini://gemini.zachdecook.com/cgi-bin/esv.sh?$ot" + +echo "# New Testament Reading" +gmni "gemini://gemini.zachdecook.com/cgi-bin/net.sh?$nt" + +echo "# Psalm" +gmni "gemini://gemini.zachdecook.com/cgi-bin/esv.sh?$ps" + +echo "# Proverb" +gmni "gemini://gemini.zachdecook.com/cgi-bin/net.sh?$pr" + |
