[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Is there another way to find a file that was created|modified|accessed b
From: |
Jeff Silverman |
Subject: |
Is there another way to find a file that was created|modified|accessed before a certain time? |
Date: |
Wed, 5 Feb 2020 11:30:18 -0800 |
I would like to get a list of all of the files modified between 2 dates. I
see that there is a -newermt DATE predicate, which works as documented and
which is half the problem. But I do not see an -oldermt DATE predicate.
In reading the archives, I see that there was a discussion of a -mbefore
predicate, but it isn't recognized in find version 4.6.0.225-235f in ubuntu
19.10.
The best workaround that I have seen is to use the ddiff command in the
dateutils package, and use that with the -mtime N predicate. Is there a
better solution? Seems like a kludge to me.
Thank you
Jeff
--
Jeff Silverman, Linux sysadmin
to five three for phive niner too tree won ate
jeffsilverm 4t gmail.c0m
http://www.commercialventvac.com
See my portfolio of writings and talks
<http://www.commercialventvac.com/portfolio.html>
- Is there another way to find a file that was created|modified|accessed before a certain time?,
Jeff Silverman <=