title: return common fields in two files
body: <p>I have two files, should compare 1st column of file1 with 1st column of file2 and the resultant file should be file2 </p>
  
  <p>For example:</p>
  
  <ul>
  <li><p>file1</p>
  
  <p>apple<br />
  banana<br />
  Mango<br />
  potato<br />
  tomato<br /></p></li>
  <li><p>file 2</p>
  
  <p>apple:fruit<br />
  brinjal: vegetable<br />
  lady's finger: vegetable<br />
  orange: fruit<br />
  tomato: vegetable<br />
  potato: vegetable<br /></p></li>
  </ul>
  
  <p>Resultant file should look something like this:</p>
  
  <p>apple:fruit<br />
  tomato: vegetable<br />
  potato: vegetable<br /></p>
  
  <p>any ideas on this would be appreciated</p>
  
  <p>Thanks</p>