I need to compare the time a file was last modified against current time and conditionally proceed.
At the command prompt I can do:
find MYFILE -mmin +1140
and it lists the file. But I need to test, and if true do something
I�ve tried things like:
if [ $MYFILE -mmin +1140 ]; then
if [ find $MYFILE -mmin +1140 ]; then
etc. with no luck of course
any ideas on using �mmin, or something comparable, to get a true-false result in my script?