title: sed delete lines between two patterns, without the second pattern, including the first pattern
body: <p>my input file looks like this:</p>
  
  <pre><code>[1234]
  text 
  text
  text
  
  [3456]
  text 
  text
  text
  
  [7458]
  text 
  text
  text
  </code></pre>
  
  <p>I want to delete all lines between the patterns, including FROM_HERE and excluding TO_HERE.</p>
  
  <pre><code>sed '/FROM_HERE/,/TO_HERE/{//p;d;}'
  </code></pre>
  
  <p>Now i have:</p>
  
  <pre><code>sed '/^\['"3456"'\]/,/^\[.*\]/{//p;d;}'
  </code></pre>
  
  <p>but this command does not delete the line FROM_HERE too. for 3456 at the end the input file should look like:</p>
  
  <pre><code>[1234]
  text 
  text
  text
  
  [7458]
  text 
  text
  text
  </code></pre>
  
  <p>How can i achieve this? Thanks.</p>