Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Sep 2004 07:33:27 +1200
From:      Juha Saarinen <juhasaarinen@gmail.com>
To:        Cyrille Lefevre <root@gits.dyndns.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Could ARG_MAX be increased?
Message-ID:  <b34be84204092312336001936a@mail.gmail.com>
In-Reply-To: <009301c4a173$d468de90$7890a8c0@gits.invalid>
References:  <b34be84204092304456066b0a0@mail.gmail.com> <009301c4a173$d468de90$7890a8c0@gits.invalid>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 23 Sep 2004 15:46:26 +0200, Cyrille Lefevre
<root@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b34be84204092312336001936a>