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

list files created today 2

Status
Not open for further replies.

sab1234

Programmer
Sep 29, 2003
11
0
0
US
Hi,

I need to list the files that has been created today. How do I do that.

Can anyoine please help me out in this

-Andy
 
Depending on the system this would work too.

find . -mtime 0

I like Salem's answer because it makes more sense but what I posted should work in most cases as well.
 
With -mtime 1 you get all the files modified within the last 24 hours, not only today's files.
I will suggest something like this:
Code:
touch `date "+%m%d0000"` /tmp/today
find . -newer /tmp/today

Hope This Help
PH.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top