Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google site




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 04-24-2007
mjays mjays is offline
Registered User
 

Join Date: Apr 2007
Location: london
Posts: 40
how do i exclude the current directory when using find?

i want to compile a list of files in all sub directories but exclude the current directory.

the closest i could get was to search 'only' the current directory, which is the opposite of what i wanted.


Code:
find . ! -name . -prune

Sponsored Links