http://qs1969.pair.com?node_id=82915


in reply to Reading certain lines in a file

Assuming your data file contains the exact content listed above, here's a quick one-liner to do the job:
perl -ne 'if (/couldn\047t parse/) { $_ = <>; print }' test.txt
Adjust as necessary ;)