title: grep lines that appear partly in one file to another
body: <p>I have a file #1 that has lines as such:</p>
  
  <p><code>SSJ4_00089026.dpx
  SSJ4_00089134.dpx
  SSJ4_00090253.dpx
  SSJ4_00090267.dpx
  SSJ4_00090379.dpx
  SSJ4_00090392.dpx
  SSJ4_00090492.dpx
  SSJ4_00094320.dpx</code></p>
  
  <p>and another file #2 that has lines as such:</p>
  
  <p><code>693d092aba91a6acd2b8d73903fe4f78  SSJ4_00089026.dpx
  0333b53c486de6a7214c05fd583f9745  SSJ4_00089134.dpx
  fdc713709251e0538a84549355627e65  SSJ4_00090253.dpx
  a8766ba5d6e1ee854bf7db10c05c7e55  SSJ4_00090267.dpx
  733f6564ca442974555a76b91d506cff  SSJ4_00090379.dpx
  f6154ddf1d7ae7c8076f08c25c9fe2c3  SSJ4_00094320.dpx</code></p>
  
  <p>All of the lines in #1 are in #2, but they don't have the hash. 
  Not all of the lines in #2 are in #1. </p>
  
  <p>I want to pull all the lines that are #1 from #2 including the hash and put them into a new file, #3. So that #3 would look like:</p>
  
  <p><code>ccfd092aba91a6acd2b8d73903fe4f78  SSJ4_00089026.dpx
  056nb53c486de6a7214c05fd583f9745  SSJ4_00089134.dpx
  45g313709251e0538a84549355627e65  SSJ4_00090253.dpx</code></p>
  
  <p>etc </p>
  
  <p>I'm thinking some command with grep such as 
  <code>grep -v -f -i file#1 file#2 &gt;&gt; file#3</code> or maybe <code>awk</code></p>