Wiki‎ > ‎

Xargs

posted Jul 9, 2016, 10:12 AM by Dong Xu


~$ 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.

Comments