Quantcast
Channel: Linux: using find to locate files older than - Server Fault
Viewing all articles
Browse latest Browse all 12

Answer by Krzysztof Krasoń for Linux: using find to locate files older than

$
0
0

If you have only '-newer file' then you can use this workaround:

# create 'some_file' having a creation date of 16 Mar 2010:touch -t 201003160120 some_file# find all files created after this datefind . -newer some_file

man touch:

  -t STAMP          use [[CC]YY]MMDDhhmm[.ss] instead of current time

Assuming that your touch has this option (mine is touch 5.97).


Viewing all articles
Browse latest Browse all 12

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>