in reply to skipping lines in a file until regexp matches
will print all lines from the first that matches /START/. Use "/START/../END/" if you want to stop processing at the end of each section.while (<LOG>) { next unless /START/..0; print; }
--Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: skipping lines in a file until regexp matches
by blueflashlight (Pilgrim) on Dec 18, 2002 at 04:41 UTC |