Re:Ask HN: What's your speciality, and what's your "FizzBuzz...
by tene on Thursday January 02, 2014 @01:53PM
(#7001360)
xargs knows the maximum command line length, and will invoke the program more than once if necessary. One of the points of xargs is to break up invocations of a program into chunks of arguments that fit in one maximum length command line.
[ Parent
| on HN ]
Re:Ask HN: What's your speciality, and what's your "FizzBuzz...
by aaronem on Thursday January 02, 2014 @04:54PM
(#7002586)
Well, how about that! It could be that I formed my opinion regarding xargs before it got that smart, or it could be the old Red Hat boxes on which I mostly learned my craft didn't bother compiling in that capability. Either way, I'm glad to know about it now, and thank you very kindly for pointing it out to me!
Re:Ask HN: What's your speciality, and what's your "FizzBuzz...
by falsedan on Thursday January 02, 2014 @07:31PM
(#7003475)
breaking up the input into multiple executions is feature #1 for xargs and has been present since PWB UNIX in 1977