For Programmers: Free Programming Magazines  


Home > Archive > AWK > November 2004 > file manipulation









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author file manipulation
dragrid

2004-11-16, 6:50 pm

see file below
I would like read thru file find and print the line that says FATAL
or URGENT and subsequent lines until I get to the next >>> check
that line if it says CRITICAL or FATAL print the lines that follow
if I see >>> with the match WARNING or URGENT I skip that line and
lines that follow
repeat the above process as I go thru the file

Thanks
[color=darkred]
IFPC: site 115 (EVRTWAXA06W), cage 1, slot 0
(3/1) Task I75(PAP Infrastructure)/0 Module FC(Flush routines)/1
00 00 00 00 have been removed, 00 00 00 00 have been delivered.[color=darkred]
IFPC: site 111 (DNTNTXXA01W), cage 1, slot 2
(3/1) Task I75(PAP Infrastructure)/0 Module FC(Flush routines)/1
00 00 00 00 have been removed, 00 00 00 00 have been
delivered.[color=darkred]
IFPC: site 109 (SNMNCAXP01W), cage 1, slot 0
(3/1) Task I75(PAP Infrastructure)/0 Module FC(Flush routines)/1
00 00 00 00 have been removed, 00 00 00 00 have been
delivered.[color=darkred]
IFPC: site 116 (BOTHWAXB06W), cage 1, slot 0
(3/1) Task I75(PAP Infrastructure)/0 Module FC(Flush routines)/1
00 00 00 00 have been removed, 00 00 00 00 have been
delivered.[color=darkred]
IFPC: site 111 (DNTNTXXA01W), cage 1, slot 0
(3/1) Task I75(PAP Infrastructure)/0 Module FC(Flush routines)/1
00 00 00 00 have been removed, 00 00 00 00 have been
delivered.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com