title: SED delete lines between two pattern matches
body: <p>I am trying to replace lines between two pattern/string matches using SED see below. I need to delete lines below <code>interface GigabitEthernet0/3</code> up to <code>interface GigabitEthernet0/4</code>, but leaving both interface names.</p>
  
  <pre><code>interface GigabitEthernet0/2
   duplex full
   mls qos trust dscp
   spanning-tree portfast
  !
  interface GigabitEthernet0/3
   mls qos trust dscp
   spanning-tree portfast
  !
  interface GigabitEthernet0/4
   mls qos trust dscp
  !
  </code></pre>
  
  <p>outcome:</p>
  
  <pre><code>interface GigabitEthernet0/2
   duplex full
   mls qos trust dscp
   spanning-tree portfast
  !
  interface GigabitEthernet0/3
  !
  interface GigabitEthernet0/4
   mls qos trust dscp
  !
  </code></pre>