title: Batch Script to extract lines Between two given words
body: <p>I need to extract texts between two given words from a file.</p>
  
  <h2>The File format is as below :</h2>
  
  <pre><code>some lines
  &lt;name&gt;text1&lt;/name&gt;
  some lines
  some lines 
  &lt;name&gt;text2&lt;/name&gt;
  some lines
  &lt;name&gt;text3&lt;/name&gt;
  some more lines
  </code></pre>
  
  <ul>
  <li><p>I need to extract all the occurrences of texts that occur between each of the name tags</p>
  
  <pre><code>&lt;name&gt; extract this text here &lt;/name&gt;
  </code></pre></li>
  </ul>
  
  <h2>Expected Output for above file :</h2>
  
  <ul>
  <li>text1</li>
  <li>text2</li>
  <li>text3</li>
  </ul>
  
  <p>Thank you.</p>