[ale] Bash Script
Tom Wiencko
tew at wiencko.com
Sun Feb 7 15:49:54 EST 1999
David S. Jackson wrote:
>
> Hi,
>
> Is there a way to show ONLY directories from ls? I couldn't think of a way,
> so I wrote a little thing called "lsd".
>
ls does not, but find does. The following will do what you want:
find -type d -maxdepth 1 -ls
If you want to specify another directory to search,
find /home -type d -maxdepth 1 -ls
Don't know yet about the second part of your question. I'll look at
it some more.
-Tom
--
----------------------------------------------------------------------
Tom Wiencko tew at wiencko.com
President - Wiencko & Associates, Inc.
More information about the Ale
mailing list