find . -name . -o -type d -print -prune
From there, I moved to using ls and grep:
ls -l | grep '^d'
I recently learned that the following shell pattern works just as well:
ls -ld */.
Tuesday, June 10, 2008
Quickly Find Subdir
I used to use a long-winded invocation of find with the prune option to non-recursively find all the directories in the current dir: