title: Delete multiple lines in file (Nagios configuration)
body: <p>I tried to delete multiple lines from a Nagios configuration file. But I failed many times. Now I ask you for help.</p>
  
  <p>Nagios configuration file:</p>
  
  <pre><code>define host{
          use                     linux-host
          host_name               vm1
          alias                   vm1
          address                 1.2.3.4    }
  
  define host{
          use                     linux-host
          host_name               vm2
          alias                   vm2
          address                 1.2.3.4
  }
  
  define host{
          use                     linux-host
          host_name               vm3
          alias                   vm3
          address                 1.2.3.4
  }
  </code></pre>
  
  <p>I need a general command which allows me to delete the whole text block (define host{.*}). E.g. for "vm2". The text blocks for vm1 and vm3 shouldn't be deleted.</p>
  
  <p>Do you have an idea to do it?</p>
  
  <p>Thank you in advance.
  Tzzaetaynzz</p>