[RndTbl] xargs with no command

Trevor Cordes trevor at tecnopolis.ca
Sat Jan 18 00:54:34 CST 2014


As per Tuesday's meeting RTFM:

ibm.com gave me the first hint:
If no command template appears on the command line, xargs uses echo by 
default.

Which then let me find it in Linux's man page:
... and executes the command (default is /bin/echo) ...

So they were basically using xargs as a newline-eater to combine all the 
lines of the iteration into one.


More information about the Roundtable mailing list