in reply to Reading certain lines in a file
perl -ne 'if (/couldn\047t parse/) { $_ = <>; print }' test.txt [download]