如果第二行与“Minion没有返回”相匹配,我需要处理第一行。我的文字如下:shell脚本中的文本处理
t-dat-collectorsrv-1a.2014_12_01_11_23:
True
t-dat-postprocessorsrv-1a.2014_04_29_10_02:
True
t-dat-collectorsrv-1a.2014_12_03_10_15:
Minion did not return
t-dat-collectorsrv-1a.2014_12_03_10_27:
Minion did not return
t-dat-collectorsrv-1a.2014_12_03_10_38:
Minion did not return
每当我得到“爪牙没有回”我想要得到的第一线“T-DAT- *”,并希望做一些处理。如何根据第二行打印的输出分隔第一行?
到目前为止您有任何代码吗? – CorbinMc 2014-12-08 05:48:34