我在跑A file | B --params > file.txt。由于我想加快处理速度,所以我使用了parallel -j+0< a.txt并发运行 20 个作业。a.txt 包含所有命令:
A file1 | B --params > file1.txt
A file2 | B --params > file2.txt
A fileN | B --params > fileN.txt
Run Code Online (Sandbox Code Playgroud)
这种方式安全吗?并行运行时,来自不同程序的标准输出会被弄乱吗?