Shell Scripting: Using xargs to execute parallel instances of a shell function

前端 未结 3 492
星月不相逢
星月不相逢 2021-02-05 17:54

I\'m trying to use xargs in a shell script to run parallel instances of a function I\'ve defined in the same script. The function times the fetching of a page, and so it\'s impo

3条回答
  •  臣服心动
    2021-02-05 18:11

    If you install GNU Parallel on another system, you will see the functionality is in a single file (called parallel).

    You should be able to simply copy that file to your own ~/bin.

提交回复
热议问题