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 11-07-2002
FuzzySlippers FuzzySlippers is offline
Registered User
  
 

Join Date: Nov 2002
Location: Calgary, Alberta, Canada
Posts: 2
Angry Use -prune with find command on AIX

I am trying to get a list of top level directories below the search path but I don't want to descend subdirectories. The find command listed below returns me the list I want but it also returns subdirectories. I can't seem to get the -prune option to work the way I want. How would I modify the following find command?

find ../users -type d \( -name "e[0-9]*" -o -name "users/cnt[0-9]*" \)
../users/cnt4071
../users/e5034071
../users/e0905759
../users/home.archive/e0279813 <-- I don't want to see this one