Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Reading certain lines in a file

by kilinrax (Deacon)
on May 24, 2001 at 18:23 UTC ( [id://82915]=note: print w/replies, xml ) Need Help??


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 ;)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://82915]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-03-28 22:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found