Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!rutgers!orstcs!nucthy!ghe From: ghe@nucthy.physics.orst.edu (Guangliang He) Newsgroups: comp.unix.questions Subject: Re: searching for a file Message-ID: <10449@orstcs.CS.ORST.EDU> Date: 8 May 89 03:59:20 GMT References: <1530@cmx.npac.syr.edu> Sender: usenet@orstcs.CS.ORST.EDU Reply-To: ghe@nucthy.PHYSICS.ORST.EDU (Guangliang He) Organization: Dept. of Physics, Oregon State University Lines: 29 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? > >supose i know there exists a file call gugu but i cannot remmember >in which sub-directory? > >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 > >still in search of gugu >gill I don't know what flavor of UNIX you are using. On most unix systems I know of(Sys V and BSD), find(1) does search recursively. Check your manual see if it search recursively or not. ----------------------------------------------------------------------- | USMAIL: Guangliang He | INTERNET: ghe@PHYSICS.ORST.EDU Department of Physics | ghe@jacobs.CS.ORST.EDU Oregon State University | BITNET: hegl@orstvm.bitnet Corvallis, OR 97331 | PHONE: (503) 754-4631 | -----------------------------------------------------------------------