title: perl - Remove line of data containing X
body: <p>I would like to ignore each line of a file that contains words listed into <code>remove.txt</code>. </p>
  
  <p>How can I modify the command below which does not work even if <code>remove.txt</code> contains the word <code>privacy</code>. </p>
  
  <pre><code>cat remove.txt | 
    perl -n0E 's/\n/|/g; say "print unless m!@($_=)\\b!i\n" ' &gt; AUX
  perl -n AUX   Filelist.txt &gt; outfile
  </code></pre>
  
  <p>Here is an example of my data:</p>
  
  <pre><code>"albu*****holmes**","ab***foo@bar.com","aef" *22","Angel**or","FR","2***3","FRANCE"
  "copperhill*****omes**","pg***trj@whoisprivacyprotect.com","***ox *39","Kir**and","WA","9***3","UNITED STATES"
  "ironhill*****shelock**","dd***trejo@foo.com","***oxtho *42","Kiss**or","CA","2***3","UNITED STATES"
  </code></pre>
  
  <p>You see that the second entry contains the word <code>privacy</code>. So it should not appear in the output. </p>
  
  <p>So eventually I want to get this: </p>
  
  <pre><code>"albu*****holmes**","ab***foo@bar.com","aef" *22","Angel**or","FR","2***3","FRANCE"
  "ironhill*****shelock**","dd***trejo@foo.com","***oxtho *42","Kiss**or","CA","2***3","UNITED STATES"
  </code></pre>