title: Two lists, if a common match is found print another list element
body: <p>I have two text files, in the format. </p>
  
  <pre><code>File 1  
  Column A    Column B      
  
  File 2  
  Column B    Column C  
  </code></pre>
  
  <p>In File 2, Column B is only a subset of the data in File 1. </p>
  
  <p>I wish to search File 1, if a match is found to Column B data point in File 2, print the Column A value. </p>
  
  <p>Can anyone advise how to do this in an easy manner? Preferably either Python or Bash. </p>
  
  <p>Thanks so much. </p>
  
  <p>An example</p>
  
  <pre><code>File 1  
  Bruce Dog  
  Frank Cat  
  Adam Fish  
  Alex Horse  
  
  File 2  
  Dog Blue  
  Fish Green  
  </code></pre>
  
  <p>Would print:</p>
  
  <pre><code>Bruce  
  Adam
  </code></pre>