title: How to untar files from youngest to oldest one until success in bash
body: <p>I got a list of tar files(backups) in a directory and need to untar them trying from the youngest to the oldest one until success.</p>
  
  <p>The problem is that from time to time tar files are damaged and need to untar older one.</p>
  
  <p>this is how I find the youngest one but not sure how to put this in while and find next one.</p>
  
  <pre><code>tar -xf `find /config/config_*.tar -maxdepth 1 -type f -size +1k -print0 | xargs -0 ls -hat | head -n 1`
  </code></pre>
  
  <p>Thanks in advance</p>