Re: Could ARG_MAX be increased?

From: Oliver Lehmann <lehmann_at_ans-netz.de>
Date: Thu, 23 Sep 2004 21:46:10 +0200
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/
Received on Thu Sep 23 2004 - 17:46:13 UTC

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