Created
June 9, 2014 21:15
-
-
Save tjluoma/9ee835f9548de69289ff to your computer and use it in GitHub Desktop.
An expanded part of https://gist.github.com/tjluoma/a4a3bc2b61278243b0e5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while [ "$YEAR" -le "${STOP}" ] | |
do | |
# calculate and print the date | |
# Note that you can control the format of the date here too | |
DATE=`gdate --date "+${COUNT} day" '+%B %d, %Y'` | |
cat <<EOINPUT | |
* ${DATE} | |
* []() | |
* | |
EOINPUT | |
# increment the counter | |
COUNT=`expr ${COUNT} + 7` | |
# check the resulting year | |
YEAR=`gdate --date "+${COUNT} day" '+%Y'` | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment