[PLUG] Listing only directories

Paul Heinlein heinlein at madboa.com
Tue Mar 2 09:08:02 UTC 2004


On Tue, 2 Mar 2004, Stafford A. Rau wrote:

> I can't think of a set of option for ls by itself that will just
> print directories recursively - but it's easy using find:
>
> find . -type d -print

Assuming you don't want anything but the subdirectories in the current
directory, you'll want the maxdepth and mindepth options too:

  find . -type d -maxdepth 1 -mindepth 1

--Paul Heinlein <heinlein at madboa.com>




More information about the PLUG mailing list