can grep use filenames from stdin?
Rogelio Serrano
rogelio.serrano at gmail.com
Sun Mar 18 10:53:36 PDT 2007
On 3/19/07, Rogelio Serrano <rogelio.serrano at gmail.com> wrote:
> On 3/19/07, Thompson Harmon [US], Stanley W.
> <Stanley.Harmon at sperry.ngc.com> wrote:
> > find . -name \*.c
> > grep -l -e somepattern `!!`
> >
> > The above commands will give you the names of the c files containing somepattern.
> >
> > Stan
> >
>
> yes but xargs will spawn grep for each file and grep will then compile
> the pattern everytime.
>
> maybe its better to use some sort of indexing scheme for insanely
> humongous directories
>
> --
> the thing i like with my linux pc is that i can sum up my complaints in 5 items
>
i think i will check how cpio does it...
--
the thing i like with my linux pc is that i can sum up my complaints in 5 items
More information about the busybox
mailing list