[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Bash Script
- Subject: [ale] Bash Script
- From: tew at wiencko.com (Tom Wiencko)
- Date: Sun, 07 Feb 1999 20:49:54 +0000
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.