Script to check file with previous date

Hi all,I need your help to create the script.I need a script to check the ZIP file at network location with yesterday date name. ZIP file creation date is current date, but name of the zip file is previous date. for example file name "20110216.zip" created today 201102017.I just want to return the yes or no value or any thing work;sPlease ReplyThanksDeepak Singla

If you have GNU date in Bash shell, then -

if [ -e "`date -d'yesterday' '+%Y%m%d'`.zip" ]; then
 echo "Yes, file exists"
else
 echo "No, file does not exist"
fi

tyler-durden