startDate="20191001";
endDate="20191030";
dayTime=`date -d "$startDate -1 days" "+%Y-%m-%d"`
while [[ $ dayTime < $endDate ]]
do
dayTime=`date -d "$ dayTime +1 days " "+%Y-%m-%d"`
#echo sh start.sh $ dayTime
file="/home/test/write_fail_file.txt."$ dayTime".log"
echo $file
if [ ! -f "$file" ]; then
echo 'file not exist'
else
echo 'file exist'
sh start.sh $file /home/test/write_fail.txt
fi
done
阅读(945) | 评论(0) | 转发(0) |