title: Shell, bash : grep the html tag in multiple lines
body: <p>Shell, bash : grep the html tag in multiple lines</p>
  
  <p>How do I grep from tr to /td in input.txt?</p>
  
  <pre><code>   &lt;tr&gt;
     &lt;td&gt;Answer&lt;/td&gt;
  </code></pre>
  
  <p>My code is </p>
  
  <pre><code> grep -o "&lt;tr&gt;.*&lt;/td&gt;" input.txt &gt; output.txt
  </code></pre>
  
  <p>But it returns nothing..</p>