blueflashlight has asked for the wisdom of the Perl Monks concerning the following question:
while (<LOG>) { do { next } until m/SCHEDULEREC OBJECT BEGIN SERVER_DAILY $da +te/; print ("$. : $_") if m/SCHEDULEREC OBJECT BEGIN SERVER_DAILY $da +te/; print ("$. : $_") if m/SCHEDULEREC OBJECT END SERVER_DAILY $date +/; print ("$. : $_") if m/ANS1228E Sending of object '(.*)' failed/ + };
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: skipping lines in a file until regexp matches
by Aristotle (Chancellor) on Dec 17, 2002 at 20:16 UTC | |
Re: skipping lines in a file until regexp matches
by dpuu (Chaplain) on Dec 17, 2002 at 21:15 UTC | |
by blueflashlight (Pilgrim) on Dec 18, 2002 at 04:41 UTC | |
Re: skipping lines in a file until regexp matches
by jdporter (Paladin) on Dec 17, 2002 at 20:20 UTC | |
Re: skipping lines in a file until regexp matches
by runrig (Abbot) on Dec 17, 2002 at 20:27 UTC |