(Erm, OK. I may have just printed to the wrong filehandle... :-)perl -ne'die$_,(<>)[0..3]if/ou/' test.txt
In reply to Re (tilly) 2: Reading a pattern and a number of lines after it
by tilly
in thread Reading a pattern and a number of lines after it
by simon.proctor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |