recursive grep
David Goodenough
dg at lakart.UUCP
Fri Sep 1 00:26:40 AEST 1989
ams at cbnewsl.ATT.COM (andrew.m.shaw,580,) sez:
>
> In article <666 at lakart.UUCP> dg at lakart.UUCP (David Goodenough) writes:
> >steve at polyslo.CalPoly.EDU (Steve DeJarnett) sez:
> >> williamt at 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 at lakart.UUCP - David Goodenough +---+
IHS | +-+-+
....... !harvard!xait!lakart!dg +-+-+ |
AKA: dg%lakart.uucp at xait.xerox.com +---+
More information about the Comp.unix.wizards
mailing list