!/bin/bash
startDate=20171023
endDate=20171103
startSec=
date -d "$startDate" "+%s"
endSec=
date -d "$endDate" "+%s"
for((i=
endSec;i+=86400))
do
firstday=
date -d "@$i" "+%Y%m%d"
echo
[
y" "+%Y%m%d"`
echo ${secondday}
done