Hacker News new | ask | show | jobs
by gav 4916 days ago
Using `find` is nice to get just directories:

$ find . -type d -maxdepth 1

2 comments

I use:

% ls -d */

ls -al | grep ^d
(Fails if a directory has a linefeed in its name followed by a 'd'. :-)