[buug] Question: getting ls to only display entries that are directories
Jon McClintock
jammer at weak.org
Fri Aug 16 10:15:28 PDT 2002
On Fri, Aug 16, 2002 at 12:07:51PM -0500, Brian Sobolak wrote:
>
> hi
>
> I'm sure this is easy.
>
> I'd like to know if there is a native parameter to 'ls'
> that just displays which entries are themselves directories.
> I've tried to RTFM, but somehow I just can't grok it.
>
> The command I use now is 'ls -al | grep ^d'. Surely
> there is something better?
find . -type d -maxdepth 1
or, simpler:
ls -d */
-Jon
More information about the buug
mailing list