title: Shell script to read a list of words and compute their counts in a corpus.
body: <p>I need to write a command line script in linux to do the following:</p>
  
  <ul>
  <li><p>read a list of words from a text file (one word per line). say w_i</p></li>
  <li><p>for each w_i computes the word count in a different text file. </p></li>
  <li><p>sum over these counts</p></li>
  </ul>
  
  <p>some help here would be really appreciated! </p>