title: Using grep to filter out words from a stopwords file
body: <p>I want to use grep together with a stopwords-file to filter out common english words from another file. The file "somefile" contains one word per line.</p>
  
  <pre><code>cat somefile | grep -v -f stopwords
  </code></pre>
  
  <p>The problem with this approach is: It checks whether a word in stopwords occurs in somefile, but I want the opposite, i.e. check if a word in somefile occurs in stopwords.</p>
  
  <p>How to do this?</p>
  
  <p><strong>Example</strong></p>
  
  <p>somefile contains the following:</p>
  
  <pre><code>hello
  o
  orange
  </code></pre>
  
  <p>stopwords contains the following:</p>
  
  <pre><code>o
  </code></pre>
  
  <p>I want to filter out only the word "o" from somefile, not hello and orange.</p>