- 论坛徽章:
- 0
|
大家好。
新手,不懂。
文本格式:
>------------ Event Monitoring Service Event Notification ------------<
xxxxxx
xxxxxx
xxxxxx
xxxxxx.....
>---------- End Event Monitoring Service Event Notification ----------<
>------------ Event Monitoring Service Event Notification ------------<
xxxxxx
xxxxxx
xxxxxx
xxxxxx.....
>---------- End Event Monitoring Service Event Notification ----------<
>------------ Event Monitoring Service Event Notification ------------<
xxxxxx
xxxxxx
xxxxxx
xxxxxx.....
>---------- End Event Monitoring Service Event Notification ----------<
.........
怎么样能循环处理每个段?
sed -n '/Event Monitoring Service Event Notification/, /End Event Monitoring Service Event Notification/p' event_nofification.log,这个把所有都打出来了,但我只需要第一段的内容进行处理,完了之后再取第二段的内容进行处理。。一直到最后一段。
谢谢! |
|