Could ARG_MAX be increased?

Oliver Lehmann lehmann at ans-netz.de
Thu Sep 23 22:28:41 PDT 2004


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/


More information about the freebsd-current mailing list