title: How can I use sed to add search pattern in multi-line string after?
body: <p>I have this text in file:</p>
  
  <pre><code>&lt;TAG-ONE&gt; multi
   line
   text
  &lt;TAG-TWO&gt; multi
   line
   text
  </code></pre>
  
  <p>I want get it:</p>
  
  <pre><code>&lt;TAG-ONE&gt; multi
   line
   text
  &lt;/TAG-ONE&gt;
  &lt;TAG-TWO&gt; multi
   line
   text
  &lt;/TAG-TWO&gt;
  </code></pre>
  
  <p>Please help me end this pattern:</p>
  
  <pre><code>sed '/^&lt;[A-Z-]*&gt;/,/^&lt;/{s/^&lt;\([A-Z-]*\)&gt;/&amp;\n\1/}'
  </code></pre>