Re: listing directories only?

gerryt_at_vcn.bc.ca
Date: 09/06/05


Date: 6 Sep 2005 09:14:28 -0700


ARIEL BOLUDOVSKY wrote:
> Thomas Maier-Komor <maierkom@lpr.e-technik.no-spam.tu-muenchen.de> dixit:
> > try this:
> > ls -lR | grep ^d | awk '{print $9;}'
> This command displays only the name of the sub-dir, but I'd rather need
> the full path from the root, eg:
> /xxx/
> /xxx/yyy/
> /xxx/yyy/zzz
> etc.

etc what? Your specification is unclear. Either you want a trailing
slash or you dont, and where is this command supposed to "begin"?
(a little pun there..)

find `pwd` -type d -print (no slash) will run from anywhere.
You can add a slash with sed, you can sort with .. sort : >