Could ARG_MAX be increased?
lehmann at ans-netz.de
Thu Sep 23 12:46:13 PDT 2004
Juha Saarinen wrote:
> Currently, ARG_MAX is set to:
> $ getconf ARG_MAX
> 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...
More information about the freebsd-current