终端同步并行执行的输出

时间:2019-06-10 17:33:25

标签: bash macos terminal parallel-processing

我正在使用&

并行执行多个命令
grib_ls -l 49.169821,19.956312,1 -p validityDate,validityTime /Users/admin/2017-12-??_00/CLSHUMI_RELATIVE_??.grb2 & 
grib_ls -l 49.169821,19.956312,1 -p validityDate,validityTime /Users/admin/2018-01-??_00/CLSHUMI_RELATIVE_??.grb2 & 
grib_ls -l 49.169821,19.956312,1 -p validityDate,validityTime /Users/admin/2018-02-??_00/CLSHUMI_RELATIVE_??.grb2 & 
grib_ls -l 49.169821,19.956312,1 -p validityDate,validityTime /Users/admin/2018-03-??_00/CLSHUMI_RELATIVE_??.grb2

输出大部分都很好,但是几乎没有错误,看起来输出像是混在一起的

20170731      130_00/CLSHUMI_RELATIVE_21.grb2

/Users/admin/Desktop/_SHMU DATA/shmu data/2017-07-31_00/CLSHUMI_RELATIVE_13.grb2
20170731      1300          0.566875      
1 of 1 messages in /Users/admin/Desktop/_SHMU DATA/shmu data/2017-07-31_00/CLSHUMI_RELATIVE_13.grb2

/Users/admin/Desktop/2017-07-31_00/CLSHUMI_RELATIVE_14.grb2
20170731      130_00/CLSHUMI_RELATIVE_21.grb2
20180130      2100          0.895405      
1 of 1 messages in /Users/admin/Desktop/2018-01-30_00/CLSHUMI_RELATIVE_21.grb2

/Users/admin/Desktop/2018-01-30_00/CLSHUMI_RELATIVE_22.grb2
20180130      2200          0.885525      
1 of 1 messages in /Users/admin/Desktop/2018-01-30_00/CLSHUMI_RELATIVE_22.grb2

如何至少获得未融合在一起的有效输出,顺序无关紧要?

0 个答案:

没有答案