seq 1 13 | xargs --parallel -P4
1 5 9 13
2 6 10
3 7 11
4 8 12

(Note there's no -n).  Same for

seq 1 13 | xargs --parallel

on a 4-core machine.  This is _by design_ rearranging files, so it
requires an option.

Right, you're not auto decreasing -n, but when we read all args and
we pass arguments round robin, the args will be distrubuted evenly to
each parallel process. Does this really require a new option though?
When -P is used, the arguments could be processed in any order anyway.

Especially since -P is not POSIX, I'd say no.  Good catch.

Paolo


Reply via email to