Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Finding files older then ??

Status
Not open for further replies.

blueeyedme

Technical User
Nov 27, 2002
39
0
0
NL
Hi,

I got a lot of SQR files on my machine.. a few thousand.
Now i want to do a search for all files older then 28 feb 2003.

Can anyone tell me how ?

 
# create a tmp file with creation date of '2003 Feb 28'
touch 20030228 /tmp/datePivot.txt

# find all the files NOT newer then the tmp file created above
find /start/path !-newer /tmp/datePivot.txt -type f vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
 
is that a question or a statement?
what exactly don't you get? vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
 
vlad's first command creates a temporary file with a last modified date of 28 February 2003.

The second command finds any files older than the temporary file. Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top