post image

Linux, Bash Find Files Modified Between Date Range

May 6, 2009 Gethugothemes

I just found this handy reference site here:

http://www.ibm.com/developerworks/aix/library/au-productivitytips.html

Here was my script that finds the files modified between given dates, and then will tar the ouptut to an archive.

find /path/ -name *.JPG -daystart -newer file.start ! -daystart -newer file.end -print0 | xargs -0 tar rvf filename.tar

Similar Posts

OpenBSD PF and OpenDNS

At home, I needed a way to prevent anything but OpenDNS from being used for DNS, and needed a rule that would do it in OpenBSD PF. Install and Configure First off, to setup an OpenDNS client on OpenBSD, install the ddclient package via pkg_add ddclient