Subdirectory listing

William L. Moran Jr. wlm at archet.UUCP
Mon May 22 10:32:44 AEST 1989


In article <215 at cs.columbia.edu> olasov at cs.columbia.edu (Ben Olasov) writes:
>
>
>I'm interested in finding a unix command usage that will return the complete
>path names of all subdirectories below a given directory, so that, given a
>directory tree like this:
... deleted
>What's the easiest way to do this?

Why not simply use find /foo -type d -print ? Unless I misunderstand what
you are trying to do, this does it. It'll produce stuff like:
/foo/bar
/foo/baz
/foo/baz/beep
				Bill Moran



-- 
arpa: moran-william at cs.yale.edu or wlm at ibm.com
uucp: uunet!bywater!acheron!archet!wlm or decvax!yale!moran-william
-------------------------------------------------------------------------------
To keep on running, try with all our might,
But in the midst of effort faint and fail;



More information about the Comp.unix.wizards mailing list