How to check HTML file for occurence of two words in any row
<p>I have an <code>HTML</code> file in which content is like this:</p>

<pre><code>&lt;tr&gt;
  &lt;td&gt;Operaion1&lt;/td&gt;
  &lt;td&gt;ERROR&lt;/td&gt;
  &lt;td&gt;LOCATION&lt;/td&gt;
  &lt;td&gt;OK&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td&gt;Operaion2&lt;/td&gt;
  &lt;td&gt;ERROR&lt;/td&gt;
  &lt;td&gt;LOCATION&lt;/td&gt;
  &lt;td&gt;FAILURE&lt;/td&gt;
&lt;/tr&gt;
</code></pre>

<p>Now, i want to check this result.html file for occurence of ERROR and OK using shell script. For every row i have to check whether both ERROR and FAILURE exist or not for any operation. How can i do this? I am not able to form any command</p>