Hi all,
When using:
find $dir -mtime +7 -delete
Will that fail to delete higher directories, because the deletion of
files updated the mtime?
Or does it get all the mtimes first, and use those?
And how precise are those times? If I'm running a cron job that deletes
7-day-old directories then creates a new one less than a second later,
will that reliably get the stuff that's just turned 7 days old? Or will
there be a race condition depending on how quickly cron starts the
script, which could be different each time?
Is there a better way to do this?
Cheers,
Richard