In this blog, I will show you how to find files in a certain date range. This gives you a little bit more flexibility vrs using atime mtime or ctime under macosx.
1st we craft the start date filename;
( the below will start at 2013-07-01 with the file named start )
touch -t 201307010000 start
Next, we craft the finish date filename;
( the below will start at 2013-12-31 with the file named finished)
touch -t 201312310000 finish
Now, we just use find specifying the 2 files which surrounds are date/times range
( execution of a unix find )
find . -type f -newer start -and -not -newer finish
Ken Felix
NSE ( Network Security Expert) and Route/Switching Engineer.
kfelix -----a----t---- socpuppets ---dot---com
^ ^
=( * * )=
o
/ \
No comments:
Post a Comment