title: Shell command line delete files older than n days except the most recent of them
body: <p>How to delete files and folders older than <code>n</code> days except the most recent of them.</p>
  
  <p>I need to do that in one line within shell.
  This works but does not keep the more recent of them :</p>
  
  <pre><code>find /base/dir/* -maxdepth 0  -type d -ctime +10 -exec rm -rf {} \;
  </code></pre>