[RndTbl] xargs with no command
athompso at athompso.net
Sat Jan 18 10:13:17 CST 2014
Other way 'round: xargs was the newline inserter, splitting a WS-separated list into multiple lines.
That's still the first time I'd ever seen xargs used like that!
On Jan 18, 2014 12:54 AM, Trevor Cordes <trevor at tecnopolis.ca> wrote:
> 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
> 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.
> Roundtable mailing list
> Roundtable at muug.mb.ca
More information about the Roundtable