Re: display directories only
On Monday 05 January 2004 16:10, Rick Weinbender wrote:
> Alf Werder wrote:
>
>> On Mon, 2004-01-05 at 15:47, Rick Weinbender wrote:
>> > I have a basic question.
>> > Is there a method using "ls" from the command line to
>> > have it display only directories.
>> > I've looked thru the help (ls --help), but cant' guess the right
>> > switches.
>>
>> A bare ls cannot do that ... it needs some assistance:
>>
>> ls -l | grep "^d"
You might also be interested in ``tree -d''.
Reply to: