补数据 startDate=20180901 endDate=20181021 startSec=`date -d "$startDate" "+%s"` endSec=`date -d "$endDate" "+%s"` for((i=$startSec;i<=$endSec;i+=86400)) do dtb=`date -d "@$i" "+%Y-%m-%d"` hive -e " " done