Re: Could ARG_MAX be increased?

From: Juha Saarinen <juhasaarinen_at_gmail.com>
Date: Fri, 24 Sep 2004 07:33:27 +1200
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
Received on Thu Sep 23 2004 - 17:35:05 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:13 UTC