Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Sep 2004 21:46:10 +0200
From:      Oliver Lehmann <lehmann@ans-netz.de>
To:        Juha Saarinen <juhasaarinen@gmail.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Could ARG_MAX be increased?
Message-ID:  <20040923214610.663c6ac0.lehmann@ans-netz.de>
In-Reply-To: <b34be84204092304456066b0a0@mail.gmail.com>
References:  <b34be84204092304456066b0a0@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Juha Saarinen wrote:

> Currently, ARG_MAX is set to:
> 
> $ getconf ARG_MAX
> 65536
>  
> in syslimits.h. This is quite low compared to other OS (SunOS has 1MB
> IIRC, and OpenBSD 3.5 256K) and causes the "argument list too long"
> issues when for instance grep'ing in directories with lots of files.

And AIX has 24k ;)
You may use a combination of ls|find+xargs for grepping many files...

-- 
 Oliver Lehmann
  http://www.pofo.de/
  http://wishlist.ans-netz.de/



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