title: Synology diskstation bash script: delete old files (leave only 10 newest files)
body: <p>This works to delete files older then 14 days</p>
  
  <pre><code>find /path/to/share -type f -iname "*.*" -mtime +14 -exec rm -f {} \;
  </code></pre>
  
  <p>I need to modify, leave only 10 latest files, no matters how old are they</p>