#!/bin/bash start=`date +%s -d "2015-05-27 00:00:00"` end=`date +%s -d "2015-06-24 00:00:00"` while [ "$start" -le "$end" ] do d=`date -d @$start "+%Y%m%d"` echo $d start=$((start+86400)) done
#!/bin/bash start=`date +%s -d "2015-05-27 00:00:00"` end=`date +%s -d "2015-06-24 00:00:00"` while [ "$start" -le "$end" ] do d=`date -d @$start "+%Y%m%d"` echo $d start=$((start+86400)) done