Skip to content

Instantly share code, notes, and snippets.

@ahmedash95
Created August 6, 2017 13:49
Show Gist options
  • Save ahmedash95/66cd3a2c9574df8522fad1118fd0e9b4 to your computer and use it in GitHub Desktop.
Save ahmedash95/66cd3a2c9574df8522fad1118fd0e9b4 to your computer and use it in GitHub Desktop.
start=2013-09-05
end=2013-09-11
while [[ $start < $end ]]
do
printf "$start\n"; start=$(date -d "$start + 1 day" +"%Y-%m-%d")
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment