10 ms·
xargs is very useful, although nowadays I usually use GNU parallel instead (it's essentially the same but with a few advantages: https://www.gnu.org/software/pa
by icebraining 15y ago
xargs is very useful, although nowadays I usually use GNU parallel instead (it's essentially the same but with a few advantages: https://www.gnu.org/software/parallel/man.html#differences_between_xargs_and_gnu_parallel https://www.gnu.org/software/parallel/man.html#differences_b...)
- makmanalp 15y agoxargs -P is sort of similar
- wging 15y agoThe link in the post to which you replied covers that; it's the section of the man page which deals specifically with differences between xargs and parallel. Having used neither of these tools before, I think two relevant lines from that link would be: >xargs can run a given number of jobs in parallel, but has no support for running number-of-cpu-cores jobs in parallel. >xargs has no support for keeping the order of the output, therefore if running jobs in parallel using xargs the output of the second job cannot be postponed till the first job is done.
- brown9-2 15y agoCame here to say this. GNU Parallel is great.