title: Output file size for all files of certain type in directory recursively?
body: <p>I am trying to get a sum of the total size of PDF files recursively within a directory. I have tried running the command below within the directory, but the recursive part does not work properly as it seems to only report on the files in the current directory and not include the directories within. I am expecting the result to be near 100 GB in size however the command is only reporting about 200 MB of files.</p>
  
  <pre><code>find . -name "*.pdf" | xargs du -sch
  </code></pre>
  
  <p>Please help!</p>