perl -ne 'print $_.=<> if /string/' testfile
In reply to Re: perl one line for advanced grep (current line and next one)
by kschwab
in thread perl one line for advanced grep (current line and next one)
by sroux
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |