perl -ne ' print, $aft++, next if /PAT/; $aft or next; print "$_---\n"; $aft = 0;'
In reply to Re^2: perl one line for advanced grep (current line and next one)
by Anonymous Monk
in thread perl one line for advanced grep (current line and next one)
by sroux
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |