title: How do I concatenate files in a subdirectory with Unix find execute and cat into a single file?
body: <p>I can do this:</p>
  
  <pre><code>$ find .
  .
  ./b
  ./b/foo
  ./c
  ./c/foo
  </code></pre>
  
  <p>And this:</p>
  
  <pre><code>$ find . -type f -exec cat {} \;
  This is in b.
  This is in c.
  </code></pre>
  
  <p>But not this:</p>
  
  <pre><code>$ find . -type f -exec cat &gt; out.txt {} \;
  </code></pre>
  
  <p>Why not?</p>