Skip to content

Instantly share code, notes, and snippets.

@R3TSU R3TSU/ forked from chluehr/
Created May 16, 2018

What would you like to do?
Bash: Loop over dates
now=`date +"%Y-%m-%d" -d "05/06/2012"`
end=`date +"%Y-%m-%d" -d "05/23/2012"`
while [ "$now" != "$end" ] ;
now=`date +"%Y-%m-%d" -d "$now + 1 day"`;
echo $now
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.