title: Remove files excluding files-list in file in shell - delete files from one directory that don't also exist in another
body: <p>I have file with files:</p>
  
  <pre><code>./aaa
  ./bbb
  ./c/ccc
  ./d/ddd
  </code></pre>
  
  <p>I have another directory with the same files and some another ones.</p>
  
  <pre><code>./aaa
  ./bbb
  ./c/ccc
  ./d/ddd
  ./to-remove-1
  ./c/to-rem-ove-2
  </code></pre>
  
  <p>I need to remove all files that are not in the first list.</p>
  
  <p>P.S. Actually the first list has been made by command <code>find /some/dir/ -type f &gt; somefile</code>. So we have another dir. But I'm looking working with a file.</p>