Subdirectory listing
Mark Buda
root at chessene.UUCP
Thu May 25 08:56:34 AEST 1989
In article <215 at cs.columbia.edu>, olasov at cs.columbia.edu (Benjamin Olasov) asks:
> 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:
>
> What's the easiest way to do this?
In article <2673 at ssc-vax.UUCP> ray3rd at ssc-vax.UUCP (Ray E. Saddler III) responds:
>Give this script a spin around the block:
...
> find $I -type d -exec ls -d {} \;
...
Um, he asked for the *easiest* way.
find $I -type d -print
is much easier.
Mark Buda
hermit at chessene.uucp / hermit%chessene.uucp at uunet.uu.net
...!rutgers!bpa!vu-vlsi!devon!chessene!hermit / devon.lns.pa.us!chessene!hermit
King of the Dancing Walnuts
PS: Anybody know why using ^Z on the console logs me out?
More information about the Comp.unix.wizards
mailing list