Re:A small primer on xargs
by webreac on Monday May 14, 2012 @03:22AM
(#3969884)
I try to use perl instead of sed, awk, bash each time the needs are beyond basic usage. This applies also sometimes for xargs for example with the following command.
find . -name junk\* | perl -nle unlink
My favorite usage of xargs if for parallel operations:
cat hostlist | xargs -P 0 -n 1 -I host rsh host gzip -9 log/*.log
My favorite usage of xargs if for parallel operations: cat hostlist | xargs -P 0 -n 1 -I host rsh host gzip -9 log/*.log