find
has good support for finding files the more modified less than X days ago, but how can I use find
to locate all files modified before a certain date?
I can't find anything in the find
man page to do this, only to compare against another files time or to check for differences between created time and now. Is making a file with the desired time and comparing against that the only way to do this?
Best Answer
If you have only '-newer file' then you can use this workaround:
man touch:
Assuming that your touch has this option (mine is touch 5.97).