Hi!
I've got a log file to parse. What I need is to extract the Node Name where Status is "Missed". The thing that trips me is that the Node Name may or may not be divided over 2 lines. When divided, the first part always ends with a dash (which we want to get rid of, obviously). All lines are 79 cols wide:
BOF
[tt]
Scheduled Start Actual Start Schedule Name Node Name Status
-------------------- -------------------- ------------- ------------- ---------
03.05.2010 21:00:00 DAILY_INCR_L- EXAMPL-WEB01- Missed
INUX .EXAMPLE.COM
03.05.2010 21:00:00 DAILY_WIN01 SERVER03-EXA- Missed
MPLE.COM
03.05.2010 23:15:00 03.05.2010 23:15:20 DAILY_INCR-L- SERVR01.EXAM- Failed 12
INUX PLE.COM
03.05.2010 23:15:00 03.05.2010 23:15:31 DAILY_WIN01 WRK-EHI02 Missed
03.05.2010 23:15:00 DAILY_INCR_W- SERVER02 Missed
IN02
[/tt]
EOF
Any suggestions?
I've got a log file to parse. What I need is to extract the Node Name where Status is "Missed". The thing that trips me is that the Node Name may or may not be divided over 2 lines. When divided, the first part always ends with a dash (which we want to get rid of, obviously). All lines are 79 cols wide:
BOF
[tt]
Scheduled Start Actual Start Schedule Name Node Name Status
-------------------- -------------------- ------------- ------------- ---------
03.05.2010 21:00:00 DAILY_INCR_L- EXAMPL-WEB01- Missed
INUX .EXAMPLE.COM
03.05.2010 21:00:00 DAILY_WIN01 SERVER03-EXA- Missed
MPLE.COM
03.05.2010 23:15:00 03.05.2010 23:15:20 DAILY_INCR-L- SERVR01.EXAM- Failed 12
INUX PLE.COM
03.05.2010 23:15:00 03.05.2010 23:15:31 DAILY_WIN01 WRK-EHI02 Missed
03.05.2010 23:15:00 DAILY_INCR_W- SERVER02 Missed
IN02
[/tt]
EOF
Any suggestions?