Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!haven!adm!cmcl2!phri!marob!daveh From: daveh@marob.MASA.COM (Dave Hammond) Newsgroups: comp.unix.questions Subject: Re: searching for a file Message-ID: <650@marob.MASA.COM> Date: 11 May 89 13:05:35 GMT References: <1530@cmx.npac.syr.edu> Reply-To: daveh@marob.masa.com (Dave Hammond) Organization: ESCC New York City Lines: 19 In article <1530@cmx.npac.syr.edu> gefuchs@logiclab.cis.syr.edu 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 Try: find / -name 'gugu' -print Find recursively searches from the base directory named through all subdirectories. Therefore, if you specify "/" as the base directory, the entire filesystem will be searched. -- Dave Hammond daveh@marob.masa.com