Re: encapulating a find function in a script

[email protected] Fri, 16 Jan 2004 11:53:49 -0800
Newsgroups org.kernel.vger.linux-console
Message-ID <[email protected]>
> You may also find that using xargs instead of -exec is much faster
> (fewer fork/execs).
>
> Something like:
>
> find "$1" -name "$2" -print0 | xargs -0 grep -H "$3"
>
> mrc
> --

Thanks!  Tried it - works great.  Runs two or three times as fast
and with half as many page faults.

 -Bob