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
|