Do something if file was changed since yesterday

PHOTO EMBED

Wed Sep 21 2022 14:36:51 GMT+0000 (Coordinated Universal Time)

Saved by @ialmeida #bash

yesterday=$(date --date="-1 day" +%Y%m%d)
file="file-${yesterday}.csv"
day=720  #12 hours

#is there a new file? ...
if [ "$( find ${file} -cmin -${day} )" ]; then
    echo copying new ${file} to folder/ ... 
    cp ${file} folder/.
fi
content_copyCOPY