Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!gatech!mcnc!decvax!ima!cfisun!lakart!dg From: dg@lakart.UUCP (David Goodenough) Newsgroups: comp.unix.wizards Subject: Re: recursive grep Message-ID: <677@lakart.UUCP> Date: 31 Aug 89 14:26:40 GMT References: <7774@cbmvax.UUCP> Organization: Lakart Corporation, Newton, MA Lines: 30 ams@cbnewsl.ATT.COM (andrew.m.shaw,580,) sez: > > In article <666@lakart.UUCP> dg@lakart.UUCP (David Goodenough) writes: > >steve@polyslo.CalPoly.EDU (Steve DeJarnett) sez: > >> williamt@sun.UUCP (William A. Turnbow) writes: > > > > find . -type d -print | awk '{ print "grep string " $0 "/*" }' | sh > > > >But then I use awk for most everything, no matter how ugly :-) > > Since my previous posting may have gotten lost, I resend that I recommend > the following: > > find . -type f -print | xargs fgrep string > > Neat and clean. Script started on Thu Aug 31 10:22:20 1989 lakart!dg(~)[61]-> find xargs lakart!dg(~)[62]-> ^D script done on Thu Aug 31 10:22:34 1989 Great. Now what do all us Berkeley folks do when we don't have xargs. How's about we pirate a copy from a local SysV site that happens to have a source licence. Naahhhh - that might get us in trouble. :-) -- dg@lakart.UUCP - David Goodenough +---+ IHS | +-+-+ ....... !harvard!xait!lakart!dg +-+-+ | AKA: dg%lakart.uucp@xait.xerox.com +---+