title: edit file 1 with contents of file 2 using awk
body: <p>I have a file <code>file1</code> containing some information for a number of people which is spread over multiple lines and fields and there will also be multiple entries for each person.
  In addition I have another file <code>file2</code> containing a list of peoples names.</p>
  
  <p>I would like to use the names in <code>file2</code> to <strong>remove all the corresponding entries in <code>file1</code></strong>. (Or conversely <code>file2</code> could be a list of the names to be kept?)</p>
  
  <p>So for example if <code>file2</code> contained the name <code>Harry</code> and <code>file1</code> looked like:</p>
  
  <pre><code>name  
  Tom  
  info  
  field1  field2  field3…..  
  field1  field2  field3…..  
  field1  field2  field3…..  
  1234  
  name
  Dick  
  info   
  field1  field2  field3…..  
  field1  field2  field3…..  
  field1  field2  field3…..  
  8765  
  name 
  Harry  
  info 
  field1  field2  field3…..  
  field1  field2  field3…..  
  field1  field2  field3…..  
  5678  
  name
  Tom  
  info
  field1  field2  field3…..  
  field1  field2  field3…..  
  field1  field2  field3…..  
  9876  
  </code></pre>
  
  <p>Then my output would be:</p>
  
  <pre><code>name  
  Tom  
  info  
  field1  field2  field3…..  
  field1  field2  field3…..  
  field1  field2  field3…..  
  1234  
  name
  Dick  
  info   
  field1  field2  field3…..  
  field1  field2  field3…..  
  field1  field2  field3…..  
  8765  
  name 
  Tom  
  info
  field1  field2  field3…..  
  field1  field2  field3…..  
  field1  field2  field3…..  
  9876  
  </code></pre>
  
  <p>does anyone have any ideas how this could be done?</p>