Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!uunet!auspex!guy From: guy@auspex.auspex.com (Guy Harris) Newsgroups: comp.unix.questions Subject: Re: searching for a file Message-ID: <1592@auspex.auspex.com> Date: 8 May 89 18:57:27 GMT References: <1530@cmx.npac.syr.edu> Reply-To: guy@auspex.auspex.com (Guy Harris) Organization: Auspex Systems, Santa Clara Lines: 19 >how would one search for a filename in a directory hierarchy? With the "find" command. >supose i know there exists a file call gugu but i cannot remmember >in which sub-directory? find . -name gugu -print >i was thinking of using : > find . -name 'gugu' -print You got it... >but obviously that only works for the current directory ...but obviously you haven't RTFM; "find" does *NOT* search only the current directory - the whole point of "find" is that it *does* search recursively.