title: I want to cat a file for a list of file names, then search a directory for each of the results and move any files it finds
body: <p>I'm having a really hard time finding an answer for this because most people want to find a list of files, <em>then</em> do the xargs.</p>
  
  <p>I have a file with a list of file names. I would like to go through the list of file names in that file and one by one search a single directory (not recursive) and any time it finds the file, move it to a sub folder.</p>
  
  <pre><code>cat test.txt | xargs find . -type f -iname
  </code></pre>
  
  <p>At this point, I get this error:
  find: paths must precede expression: file1</p>