~$
echo
10 20 30 40 50 60 |
xargs
-n 1 -P 4
sleep
The use of “-n 1” is vital if you want to pass only one command-line argument from the list to each parallel process.