title: BATCH SCRIPT : Delete lines that contains a specific characters in a file
body: <p>Im trying to delete all in a file all the lines that contains some values.
  My file looks like the following: </p>
  
  <pre><code>"BLOT"  "GL.AC" "00350" "AMG"   "10502" "     " "                    "  "     " "     " "     " "     " "
  "ACOD"  "BC.FF" "00350" "AMG"   "10502" "     " "                    "  "     " "     " "     " "     " "
  "VARC"  "DF.RR" "00350" "AMG"   "10502" "     " "                    "  "     " "     " "     " "     " "
  </code></pre>
  
  <p>The idea is to delete all the lines that contains the string "BLOT" and "VARC"</p>
  
  <p>The expected result is :</p>
  
  <pre><code>"ACOD"  "BC.FF" "00350" "AMG"   "10502" "     " "                    "  "     " "     " "     " "     " "
  </code></pre>
  
  <p>How can we delete those lines from the file using a batch script? </p>
  
  <p>I've found this command but this doesn't delete lines</p>
  
  <pre><code>powershell -Command "(gc C:\TEST_AUTO.txt) -replace 'BLOT', 'XXXX' | Out-File myFile.txt"
  </code></pre>
  
  <p>Thanks for your help</p>