title: Sed in place edit
body: <pre><code>for term in `cat stopwords`; do sed -i 's/\&lt;$term\&gt;//g' spam.txt ;done
  </code></pre>
  
  <p>Given stopwords contains a word per line and spam.txt is plain text file, I just need to replace exact matches of stopwords. Does not behave as I expect ...
  Note there are words like <code>doesn't</code>, <code>couldn't</code> in both the files.</p>