Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

1
  • Yes, the OS imposes a limit in the number/size of arguments that can be passed. On modern Linux systems this is (gigantic)(linux.die.net/man/2/execve) (1/4 of stack size, 0x7FFFFFFF arguments). AFAIK bash itself doesn't impose any limit. My lists are much smaller, and my problem was caused by misunderstanding or mis-remembering how xargs works. Your solution is indeed the most robust, but it's overkill in this case. Commented Jan 20, 2014 at 10:06