title: Remove text from lines matching string using batch
body: <p>I need to remove the text from the lines that contain a specific string using batch processors: SED, AWK, Windows batch, Unix shell or something similar.
  If the string is "green" then the following input</p>
  
  <pre><code>red
  green 1
  blue
  green 2
  yellow
  </code></pre>
  
  <p>will produce the output</p>
  
  <pre><code>red
  &lt;EMPTY LINE&gt;
  blue
  &lt;EMPTY LINE&gt;
  yellow
  </code></pre>
  
  <p>I also need to do the same thing for lines not matching the string, producing the output</p>
  
  <pre><code>&lt;EMPTY LINE&gt;
  green 1
  &lt;EMPTY LINE&gt;
  green 2
  &lt;EMPTY LINE&gt;
  </code></pre>
  
  <p>I need to remove text from lines (empty the content of lines), not to delete them.</p>