title: How do I list all files with their size and last modified date?
body: <p>I would like to list all files in human readable format size and date stamp including files in sub-directories and sort it all by size. Currently I can do that with the code below: </p>
  
  <pre><code>find /sasdata/ -name "*.sas7bdat" -exec ls -lthS  {} + | sort -r -h | awk '{print $3, $4, $5, $6, $7, $8, $9, $10,$11,$12,$13}' &gt;&gt; sasdata_all.txt &amp;
  </code></pre>
  
  <p>It is sorted by size and not per folder. I want it to sort all the files regardless of its path. How do I do that?</p>