Re: Could ARG_MAX be increased?

From: Oliver Lehmann <lehmann_at_ans-netz.de>
Date: Fri, 24 Sep 2004 07:28:34 +0200
Juha Saarinen wrote:

> 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.

FreeBSD's grep knows -H:

olivleh1_at_kartoffel olivleh1> grep -H 1 lala
lala:1



-- 
 Oliver Lehmann
  http://www.pofo.de/
  http://wishlist.ans-netz.de/
Received on Fri Sep 24 2004 - 03:28:41 UTC

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