天天看點

shell 日期循環!/bin/bash

!/bin/bash

startDate=20171023

endDate=20171103

startSec=

date -d "$startDate" "+%s"

endSec=

date -d "$endDate" "+%s"

for((i=

shell 日期循環!/bin/bash

endSec;i+=86400))

do

firstday=

date -d "@$i" "+%Y%m%d"

echo

shell 日期循環!/bin/bash

[

shell 日期循環!/bin/bash

y" "+%Y%m%d"`

echo ${secondday}

done