Path: utzoo!attcan!nebulus!attcdso!ram From: ram@attcdso.UUCP (R. Meesters, Tech Support, AT&T Canada DSO ) Newsgroups: comp.unix.questions Subject: Re: searching for a file Summary: find command Message-ID: <167@attcdso.UUCP> Date: 15 May 89 15:00:38 GMT References: <1530@cmx.npac.syr.edu> Organization: TSLanpar,Toronto,Ontario Lines: 28 In article <1530@cmx.npac.syr.edu>, gefuchs@skolem.uucp (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 > How bout using the following... find / -name 'gugu' -print This will search from the named sub-directory upwards through the directory tree...providing, of course, you have appropriate permissions. I often use find / -name firp -print to find files when I don't know where the heck they exist. -- ------------------------------------------------------------------------------ Richard Meesters | AT&T Data Service Operations | "Calling YOU stupid would Toronto, Ontario | be an insult to stupid people" ...attcan!nebulus!attcdso!ram | - A Fish Called Wanda ------------------------------------------------------------------------------