in reply to Re: Reading a pattern and a number of lines after it
in thread Reading a pattern and a number of lines after it
(Erm, OK. I may have just printed to the wrong filehandle... :-)perl -ne'die$_,(<>)[0..3]if/ou/' test.txt
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re (tilly) 2: Reading a pattern and a number of lines after it
by jryan (Vicar) on Jan 09, 2002 at 06:37 UTC |