title: Bash: find and concatenate files
body: <p>I have the following structure:</p>
  
  <pre>
  /home/
  ├── DIR1/
  │   └── file_ab.csv
  ├── DIR2/
  │   └── file_cd.csv
  └── DIR3/
      └── file3_ef.csv
  </pre>
  
  <p>Where <code>file_**.csv</code> contains rows of floats, different floats for each DIR.</p>
  
  <p>I want to grab the contents of all of the <code>file_**.csv</code> files and concatenate them.</p>
  
  <p>I found this answer <a href="https://stackoverflow.com/questions/25083335/find-command-to-find-files-and-concatenate-them">here</a>:</p>
  
  <pre><code>find /home -type f -name '*.csv' -exec cat {} \; &gt; pl_parameters
  </code></pre>
  
  <p>But I get an empty file called 'pl_parameters'. Why is the file empty? How can I fix this?</p>