awk -vN=2 'n>=N;/last pid.*/{++n}' file
I'd like to print out all lines after the second regex match, including the line that contains the regex. This is close but it doesn't print out the line containing the regex. Any quick help with this?
Example Input
last pid: something
blah
blah
last pid: something else
this
is
what
i
want
Desired Output:
last pid: something else
this
is
what
i
want