[root@xx bin]# touch list_all_day.sh
[root@xx bin]# chmod +x list_all_day.sh
#!/bin/bash
datebeg=$1
dateend=$2
#read datebeg
#read dateend
beg_s=`date -d "$datebeg" +%s`
end_s=`date -d "$dateend" +%s`
while [ "$beg_s" -le "$end_s" ]
do
date -d @$beg_s +"%Y%m%d"
beg_s=$((beg_s+86400))
done
[root@xx bin]# sh list_all_day.sh 20150802 20150809
20150802
20150803
20150804
20150805
20150806
20150807
20150808
20150809