LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to find the files more than 30 days (http://www.linuxquestions.org/questions/linux-newbie-8/how-to-find-the-files-more-than-30-days-4175418757/)

figure20012 07-26-2012 06:52 AM

how to find the files more than 30 days
 
how to find the files more than 30 days in bash excluding all the files in subfolders

figure20012 07-26-2012 06:54 AM

example
find /home -mtime 30

however it displays also all the files >30 in subfolders
how can i exclude the files in the subfolders?

TobiSGD 07-26-2012 08:16 AM

Add the option -maxdepth 1
For more information on find use
Code:

man find


All times are GMT -5. The time now is 01:00 AM.