Could ARG_MAX be increased?
Juha Saarinen
juhasaarinen at gmail.com
Thu Sep 23 12:35:05 PDT 2004
On Thu, 23 Sep 2004 15:46:26 +0200, Cyrille Lefevre
<root at gits.dyndns.org> wrote:
> how about grep -r ou find | xargs grep !
How does that work, out of curiosity?
You can use the -exec feature of 'find' other wise -
find . -type f -exec grep "something" {} /dev/null \;
-- the /dev/null is, according to a friend, "to provide grep with more
than one input file, so that includes the file name in any matches.
Didn't use it before. Add -depth or -maxdepth according to how many
directories you want to trawl through.
--
Juha
More information about the freebsd-current
mailing list