[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: display directories only



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"

-alf



Reply to: