2 ms·
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 com
by webreac 14y ago
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