Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!batcomputer!rpi!rpi.edu!lawrence From: lawrence@its.rpi.edu (David Lawrence) Newsgroups: comp.unix.questions Subject: Re: searching for a file Message-ID: Date: 8 May 89 05:07:11 GMT References: <1530@cmx.npac.syr.edu> Sender: usenet@rpi.edu Reply-To: tale@pawl.rpi.edu Lines: 17 In-reply-to: gefuchs@skolem.uucp's message of 7 May 89 21:08:54 GMT In article <1530@cmx.npac.syr.edu> gefuchs@skolem.uucp (Gill E. Fuchs) writes: GEF> supose i know there exists a file call gugu but i cannot remmember GEF> in which sub-directory? GEF> i was thinking of using : GEF> find . -name 'gugu' -print GEF> but obviously that only works for the current directory Uh .... obviously not, if you read the manual page for find. find is recursive; in fact, getting it to stop being recursive is a real pain (you can only prune directories based on name or pattern; pruning based on level would be a welcome addition to find). You should have tried that, it would work. Dave -- tale@rpitsmts.bitnet, tale%mts@itsgw.rpi.edu, tale@pawl.rpi.edu