Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!agate!shelby!csli!gandalf From: gandalf@csli.Stanford.EDU (Juergen Wagner) Newsgroups: comp.unix.questions Subject: Re: searching for a file Message-ID: <8898@csli.Stanford.EDU> Date: 10 May 89 01:50:27 GMT References: <1530@cmx.npac.syr.edu> Sender: gandalf@csli.Stanford.EDU (Juergen Wagner) Reply-To: gandalf@csli.stanford.edu (Juergen Wagner) Organization: Center for the Study of Language and Information, Stanford U. Lines: 16 In article <1530@cmx.npac.syr.edu> gefuchs@logiclab.cis.syr.edu (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 >how would one make that a recursive search, something a la ls -R "find" *WILL* perform a recursive search unless it is told otherwise. TFM mentions that "find" searches the tree starting at the directories listed (in this case: starting at "."). That's the whole point why "find" is used. -- Juergen Wagner gandalf@csli.stanford.edu wagner@arisia.xerox.com