tariqahsan has asked for the wisdom of the Perl Monks concerning the following question:
For example, I would like to get all the text within the
block marked between double dashes when the
searchfinds the string 'D : Error Occurred'.
Actually I only need the value of 'A' and 'B' only.
...
=================================
A : 123
B : 234
C : ABC
D : Error Occurred
=================================
...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Get specified number of previous line text when encountered a text match in a file
by saintmike (Vicar) on Aug 10, 2004 at 16:20 UTC | |
|
Re: Get specified number of previous line text when encountered a text match in a file
by Zaxo (Archbishop) on Aug 10, 2004 at 16:21 UTC | |
|
Re: Get specified number of previous line text when encountered a text match in a file
by davido (Cardinal) on Aug 10, 2004 at 16:15 UTC | |
|
Re: Get specified number of previous line text when encountered a text match in a file
by eserte (Deacon) on Aug 10, 2004 at 17:27 UTC | |
|
Re: Get specified number of previous line text when encountered a text match in a file
by Joost (Canon) on Aug 10, 2004 at 16:14 UTC |