home / blog

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 {}
This entry was posted in geek and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published.