I would like you help in order to achieve this:
I have to print the line matchi pattern and this is OK,but at the same time print
a specific line after: for exmple the third, the fourth etc ..... .
But only the pair of lines above reported:
- the one matching the string
- and jsut the specifi line (3, 4 5 , 6 .....) NOt the other lines between(in teh middle).
Example: I search for "BBBB" string:
AAAA BBBB CCCC DDDD
EEEE FFFF
GGGG HHHH
IIII LLLL MMMM JJJJ
and I want to print this output (considering jus the forth line also the one matching string)
AAAA BBBB CCCC DDDD
IIII LLLL MMMM JJJJ
Thanks a lot in advance.
Ciao
I have to print the line matchi pattern and this is OK,but at the same time print
a specific line after: for exmple the third, the fourth etc ..... .
But only the pair of lines above reported:
- the one matching the string
- and jsut the specifi line (3, 4 5 , 6 .....) NOt the other lines between(in teh middle).
Example: I search for "BBBB" string:
AAAA BBBB CCCC DDDD
EEEE FFFF
GGGG HHHH
IIII LLLL MMMM JJJJ
and I want to print this output (considering jus the forth line also the one matching string)
AAAA BBBB CCCC DDDD
IIII LLLL MMMM JJJJ
Thanks a lot in advance.
Ciao