Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!bpa!cbmvax!vu-vlsi!devon!chessene!root From: root@chessene.UUCP (Mark Buda) Newsgroups: comp.unix.wizards Subject: Re: Subdirectory listing Keywords: directory tree subdirectory Message-ID: <431@chessene.UUCP> Date: 24 May 89 22:56:34 GMT References: <215@cs.columbia.edu> <2673@ssc-vax.UUCP> Reply-To: hermit@chessene.UUCP (Mark Buda) Distribution: usa Organization: Lancaster Public Access UN*X, Lancaster PA Lines: 25 Who-To-Blame: Niklaus Wirth In article <215@cs.columbia.edu>, olasov@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@ssc-vax.UUCP> ray3rd@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@chessene.uucp / hermit%chessene.uucp@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?