New answers tagged

0

Thanks to this post, I understood why I was loosing time with parallel on a similar job. I hope my findings help more people! In this example, I use both for and parallel to: - do 100000 operations to the power of 10 - do 10 operations to the power of 1000000 Results clearly confirm what Casey mentions: "you need jobs that take longer to run than the ...


0

Another example: ls *.txt | parallel 'sort {} > {.}.sorted.txt' I found the other examples unnecessarily complex, when in most cases the above is what you may have been searching for.


0

Using GNU Parallel you would do this: parallel -P 5 mke2fs -t ext4 ::: /dev/sd[d-p]1


0

Try this: echo -e "/dev/sdb\n/dev/sdc\n/dev/sdd" | xargs -P0 -n1 mkfs.ext4



Top 50 recent answers are included