[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: xargs bug? 1024 arguments at most?



<quote who="Alec">
> Hi
>
> I don't know if this is POSIX-compliant behaviour or a bug, but
> xargs can  only pass 1024 arguments.


have you tried these options?

       --max-chars=max-chars, -s max-chars
              Use  at most max-chars characters per command line,
              including the command and initial arguments and the
              terminating  nulls  at  the  ends  of  the argument
              strings.  The default is as large as  possible,  up
              to 20k characters.

       --max-args=max-args, -n max-args
              Use  at  most  max-args arguments per command line.
              Fewer than max-args arguments will be used  if  the
              size (see the -s option) is exceeded, unless the -x
              option is given, in which case xargs will exit.


note that max args depends on max chars ..





Reply to: