running many instances of a simple command in parallel, with xargs
echo "1 2 3 4 5 6" | xargs -d " " -I "{}" -n 1 -P 6 echo hello
Append "{}" to have it print the arg value
last updated july 2018
echo "1 2 3 4 5 6" | xargs -d " " -I "{}" -n 1 -P 6 echo hello
Append "{}" to have it print the arg value