searching for a file

Ray E. Saddler III ray3rd at ssc-vax.UUCP
Tue May 9 02:00:52 AEST 1989


In article <1530 at cmx.npac.syr.edu>, gefuchs at 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



More information about the Comp.unix.questions mailing list