title: Diff and intersection reporting between two text files
body: <p><strong>Disclaimer: I am new to programming and scripting in general so please excuse the lack of technical terms</strong></p>
  
  <p>So i have two text file data sets that contain names listed:</p>
  
  <pre><code>First File | Second File
  bob        | bob
  mark       | mark
  larry      | bruce
  tom        | tom
  </code></pre>
  
  <p>I would like to run a script (pref python) that outputs the intersection lines in one text file and the different lines in another text file, ex:</p>
  
  <p><em>matches.txt</em>:</p>
  
  <pre><code>bob 
  mark 
  tom 
  </code></pre>
  
  <p><em>differences.txt</em>:</p>
  
  <pre><code>bruce
  </code></pre>
  
  <p>How would I accomplish this with Python? Or with a Unix command line, if it's easy enough?</p>