title: Command to delete all two lines of a format
body: <p>I want to <strong>delete all occurrences</strong> of lines(2 lines) of the format below in a file. That is first line ending with { and second line has only one character }. If this format occurs n number of times, I want to delete those 2n lines.</p>
  
  <pre><code>anything....{
  }
  </code></pre>
  
  <p>Example Input file:</p>
  
  <pre><code>abc {
  a
  }
  bcd {
  }
  ecd xyz {
  }
  pqr {
      stu {
      }
  }
  xyz {
  so
  }
  </code></pre>
  
  <p>Expected Output file:</p>
  
  <pre><code>abc {
  a
  }
  xyz {
  so
  }
  </code></pre>