Skip to content

Instantly share code, notes, and snippets.

@eit
Created February 2, 2016 12:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eit/fa41b4ff3a977cf40c50 to your computer and use it in GitHub Desktop.
Save eit/fa41b4ff3a977cf40c50 to your computer and use it in GitHub Desktop.
startdate=2013-03-15
enddate=2013-04-14
curr="$startdate"
while true; do
echo "$curr"
[ "$curr" \< "$enddate" ] || break
curr=$( date +%Y-%m-%d --date "$curr +1 day" )
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment