Re:Things you (probably) didn't know about xargs
by uggedal on Sunday June 26, 2011 @01:23PM
(#2698470)
One thing that have bitten me in the past is the fact that xargs always runs at least once, even if there are no input. By using the -r / --no-run-if-empty flag, xargs does not run the command if the input does not contain any nonblanks.
[ Parent
| on HN ]
Re:Things you (probably) didn't know about xargs
by ptramo on Sunday June 26, 2011 @01:36PM
(#2698497)
As with many cool features, it's a GNU-only option.
One can refer to http://pubs.opengroup.org/onlinepubs/009695399/utilities/xar... for the portable flags.