The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 09-15-2008
Stephan Stephan is offline
Registered User
  
 

Join Date: Sep 2005
Location: Great White North
Posts: 22
Find command to run only in the base directory

Hi.

I'm trying to get my find command to only search in the directory i tell it to, but i don't want it to search in the sub directories as well...

For example, i have a /data/files/ and /data/files/old

I want to search for all .sav files within /data/files but i don't want it to drill down through the /data/files/old directory...

I tried using maxdepth but i get an error that it is not a valid option. i am sure there is a way to do this?!

thanks!