title: Delete certain lines in a txt file via a batch file
body: <p>I have a generated txt file.  This file has certain lines that are superfluous, and need to be removed.  Each line that requires removal has one of two string in the line; "ERROR" or "REFERENCE".  These tokens may appear anywhere in the line.  I would like to delete these lines, while retaining all other lines.</p>
  
  <p>So, if the txt file looks like this:</p>
  
  <pre>
  Good Line of data
  bad line of C:\Directory\ERROR\myFile.dll
  Another good line of data
  bad line: REFERENCE 
  Good line
  </pre>
  
  <p>I would like the file to end up like this:</p>
  
  <pre>
  Good Line of data
  Another good line of data
  Good line
  </pre>
  
  <p>TIA.</p>