Restrict traverse of find command to 2 subdirectories only.
DrBugsMar 30 2008 — edited Mar 31 2008Find the files that are older than 90 days under the directories /f001,/f002,/f003 and traverse only 2 subdirectory levels.
The following statement traverses all directories and subdirectories, how do I restrict the traverse to two subdirectories only?
find /f001 -type f -mtime +90 -exec ls -ld {} \;
find /f002 -type f -mtime +90 -exec ls -ld {} \;
find /f003 -type f -mtime +90 -exec ls -ld {} \;