Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!fluke!ssc-vax!ray3rd From: ray3rd@ssc-vax.UUCP (Ray E. Saddler III) Newsgroups: comp.unix.questions Subject: Re: searching for a file Summary: You were right on track from the beginning! Message-ID: <2643@ssc-vax.UUCP> Date: 8 May 89 16:00:52 GMT References: <1530@cmx.npac.syr.edu> Organization: Boeing Aerospace Corp., Seattle WA Lines: 20 In article <1530@cmx.npac.syr.edu>, gefuchs@skolem.uucp (Gill E. Fuchs) writes: > > how would one search for a filename in a directory hierarchy? > > i was thinking of using : find . -name 'gugu' -print > but obviously that only works for the current directory / /____wrong! > how would one make that a recursive search, something a la ls -R Find *does* a recursive search [at least on BSD 4.2 & 4.3, and SYSV 3.1]. Use 'find . -name gugu -print'. It will [should] work unless your flavor or *ix is unusual enough to *not* recursivly search. -- Ray E. Saddler III | __ __ __ __ | UseNet Boeing Aerospace | / / / // //| // | uw-beaver!ssc-vax!ray3rd P.O. Box 3999 m.s. 3R-05 | /-< / //- // |// _ | PhoneNet Seattle, Wa. 98124 USA | /__//_//__ // //__/ | 1+206-657-2824