Code Comments
Programming Forum and web based access to our favorite programming groups.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 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. 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. 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. 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. 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.
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.