in reply to Re: perl one line for advanced grep (current line and next one)in thread perl one line for advanced grep (current line and next one)
perl -ne '
print, $aft++, next if /PAT/;
$aft or next;
$aft = 0;'
My fellow monks
Can't tell (I'm NSA/FBI/HS/...)
Others (explain your deviation)
Results (148 votes). Check out past polls.