title: Delete strings from an html file containing a pattern using unix commands
body: <p>I have a messy html that looks like this:</p>
  
  <pre><code>&lt;div id=":0.page.0" class="page-element" style="width: 1620px;"&gt;
   &lt;div&gt;
    &lt;img src="viewer_files/viewer_004.png" class="page-image" style="width: 800px; height: 1131px; display: none;"&gt;
    &lt;img src="viewer_files/viewer_005.png" class="page-image" style="width: 1600px;"&gt;
   &lt;/div&gt;
  &lt;/div&gt;// this repeats 100+ times with different 'src' attributes
  </code></pre>
  
  <p><strong>Now this is all one line actually</strong> (i have formatted in multiple lines for easy readibility). I am trying to remove all <code>&lt;img&gt;</code> tags that have <code>display:none;</code> set in the inline css. Is it possible to use sed/awk or some other unix command to achieve this? I think if it were a well indented html document, it would've been easy. </p>