Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
gav
13y ago
0 comments
Save
Share
Using `find` is nice to get just directories:
$ find . -type d -maxdepth 1
0 comments
3 comments · 2 top-level
top
newest
oldest
VaucGiaps
13y ago
· 1 in thread
ls -al | grep ^d
ralph
13y ago
(Fails if a directory has a linefeed in its name followed by a 'd'. :-)
pnrao
13y ago
I use:
% ls -d */
j
/
k
navigate · click thread line to collapse