in reply to Lines above and Below a matched string
One way is to read your file in chunks of three lines. If line 2 matches the format you need, then you go ahead and process lines 1 & 3, otherwise go to the next chunk of three.
-Tats
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Lines above and Below a matched string
by derby (Abbot) on Jun 26, 2003 at 18:46 UTC | |
|
Re: Re: Lines above and Below a matched string
by Itatsumaki (Friar) on Jun 26, 2003 at 19:30 UTC |