Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: how to check for a word in a file and if found remove that line, the above line and the below line from the file.

by BillKSmith (Monsignor)
on Jan 21, 2016 at 03:30 UTC ( [id://1153234]=note: print w/replies, xml ) Need Help??


in reply to Re: how to check for a word in a file and if found remove that line, the above line and the below line from the file.
in thread how to check for a word in a file and if found remove that line, the above line and the below line from the file.

Another special case is when /xxxxx/ appears on two (or more) consecutive lines.
Bill
  • Comment on Re^2: how to check for a word in a file and if found remove that line, the above line and the below line from the file.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-23 18:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found