LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Show files not directories than have been modified within the current day (NEWTHR) (https://www.linuxquestions.org/questions/linux-newbie-8/show-files-not-directories-than-have-been-modified-within-the-current-day-newthr-627470/)

jianelisj 03-12-2008 06:12 AM

Show files not directories than have been modified within the current day (NEWTHR)
 
I would like to have some help in the following problem:
Show all files not directories than have been modified within the current day. My solution is:

ls -f | today

Thank you very much for your time and your help!

Poetics 03-12-2008 06:32 AM

You should be able to do this very easily with the 'find' command. You can specify all sorts of criteria, including file type and access/modification/creation date.

man find

Tinkster 03-18-2008 04:58 PM

Quote:

Originally Posted by jianelisj (Post 3086084)
I would like to have some help in the following problem:
Show all files not directories than have been modified within the current day. My solution is:

ls -f | today

Thank you very much for your time and your help!

ls -f
tells ls not to sort output at all. How is this going to help?

Read the man-page.

Read the study material you've been handed. Stop blindly posting
rubbish in the hopes that someone will come along and do your work.


And once that's sorted write the program
"today" to do your bidding.



Cheers,
Tink


All times are GMT -5. The time now is 11:28 AM.