Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
gav
· 13y ago · 0 comments
Using `find` is nice to get just directories:
$ find . -type d -maxdepth 1
Comments
[–]
pnrao
13y ago
I use:
% ls -d */
[–]
VaucGiaps
13y ago
ls -al | grep ^d
[–]
ralph
13y ago
(Fails if a directory has a linefeed in its name followed by a 'd'. :-)