Doing parallel processing in bash?

后端 未结 3 1928
清歌不尽
清歌不尽 2020-12-13 07:24

I\'ve thousands of png files which I like to make smaller with pngcrush. I\'ve a simple find .. -exec job, but it\'s sequential. My machine has qui

3条回答
  •  忘掉有多难
    2020-12-13 07:40

    You can use custom find/xargs solutions (see Bart Sas' answer), but when things become more complex you have -at least- two powerful options:

    1. parallel (from package moreutils)
    2. GNU parallel

提交回复
热议问题