title: Extract lines between 2 tokens in a text file using bash
body: <p>i have a text file which looks like this:</p>
  
  <pre><code>random useless text 
  &lt;!-- this is token 1 --&gt; 
  para1 
  para2 
  para3 
  &lt;!-- this is token 2 --&gt; 
  random useless text again
  </code></pre>
  
  <p>I want to extract the text in between the tokens (excluding the tokens of course). I tried using ## and %% to extract the data in between but it didn't work. I think it is not meant for manipulating such large text files. Any suggestions how i can do it ? maybe awk or sed ?</p>