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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Find all files with a modification date

Status
Not open for further replies.

denalibird

IS-IT--Management
Apr 20, 2001
11
US
I need to find all files on my system with a modification date of Jun 24 00:02.

What's the best way to produce this?

Thanks in advance!
 
This should work:

touch -t 200306240001 oldest.txt
touch -t 200306240002 newest.txt
find / -newer oldest.txt ! -newer newest.txt

This will find all files newer than June 24 00:01 but not newer than June 24 00:02.
 
I think for finding a specific time, this would work
Code:
ls -lR | grep "Jun 24 00:02"
 
Yes, Salem's is easier.

I had a mistke in mine: The time stamp for the oldest.txt file should be 200306240002 and for newest it should be 200306240003. That will find those with 00:02 timestamps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top