I want to call a shell script regularly, and in it I need to process the files present in a directory tree that are new or that have been modified since the previous call of the script.
My 1st thought is to call the script from cron
and use find -type f -mmin ...
with the same time interval.
But I'd prefer if the script was self sufficient and allowed for manual or irregular calls. I can't just do a plain diff
because I also need the list of modified files.
Maybe store the date of the call somewhere ? Any ideas ?