Oct 17, 2003 #1 sab1234 Programmer Joined Sep 29, 2003 Messages 11 Location 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
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
Oct 17, 2003 1 #2 Salem Programmer Joined Apr 29, 2003 Messages 2,455 Location GB Code: find . -mtime -1 The find command is pretty much the "swiss army knife" of file system utilities. -- http://www.catb.org/~esr/faqs/smart-questions.html Upvote 0 Downvote
Code: find . -mtime -1 The find command is pretty much the "swiss army knife" of file system utilities. -- http://www.catb.org/~esr/faqs/smart-questions.html
Dec 16, 2003 #3 SteveR77 Programmer Joined Sep 18, 2000 Messages 813 Location US 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. Upvote 0 Downvote
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.
Dec 16, 2003 1 #4 PHV MIS Joined Nov 8, 2002 Messages 53,708 Location FR 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. Upvote 0 Downvote
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.