Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.