Obscure command line switch of the day

-max-procs n switch to xargs allows easy “parallel” processing in scripts.

cat file.txt | xargs -i{} -max-procs 10 something {}

Leave a comment

Your email address will not be published.