Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://62933]
help
Chatterbox?
[Corion]: Meh, stupid people are associated with every president
[Corion]: (or presidential candidate)
[Corion]: And if you only have two candidates, you can expect some of the stupid people to make the "right" choice by chance ;)
[erix]: I think it's a little worse this time :)
[Discipulus]: yes; even broken clock show the right time twice a day

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (9)
As of 2017-01-24 08:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (203 votes). Check out past polls.