Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!unmvax!pprg.unm.edu!hc!lll-winken!cheers!exodus From: exodus@cheers.UUCP (Greg Onufer) Newsgroups: comp.unix.questions Subject: Re: cleanup script needed Message-ID: <238@cheers.UUCP> Date: 10 May 89 06:08:56 GMT References: <19510@adm.BRL.MIL> Organization: Cheers Bar & Grill Lines: 23 In article <19510@adm.BRL.MIL>, drears@PICA.ARMY.MIL (Dennis G. Rears (FSAC)) writes: > /bin/find DIR -name "filename" -exec ls -l {} \; > > This will do it. This will give the full path name. Ouch! Too much processor time is being wasted! Try: find DIR -name 'filename' -print to get just the pathname, or: find DIR -name 'filename' -ls To get a directory listing (is the -ls flag standard or just a SunOS'ism?). Find is one of the most powerful Unix utilities, but has too many command-line switches! This causes it to be mis-used or never-used by a lot of people who really need such a utility. -greg