LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Find Files (https://www.linuxquestions.org/questions/linux-newbie-8/find-files-4175420730/)

sunveer 08-06-2012 08:53 PM

Find Files
 
How to find files before or after a particular date like 7 Aug 2012?

rockie321 08-06-2012 11:24 PM

You could use something like
Code:


find . -mtime -X  -exec ls -l {} \;
find . -mtime -10  -exec ls -l {} \; ### Will display files that were modified 10 days prior to the command execution

where X is the number of days before the file has been modified, the date from which the find command is run.


All times are GMT -5. The time now is 07:40 PM.