Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Parsing file and removing a section

by repson (Chaplain)
on Mar 08, 2001 at 12:03 UTC ( #62933=note: print w/ replies, xml ) Need Help??


in reply to Parsing file and removing a section

perl -ne 'print unless /<VirtualHost 123.123.123.123>/ .. m|</VirtualHost>|;' filename

You should be able to find out about the .. in perlop.


Comment on Re: Parsing file and removing a section
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2014-07-23 00:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (130 votes), past polls