title: Shell script: Get name of last file in a folder by alphabetical order
body: <p>I have a folder with backups from a MySQL database that are created automatically. Their name consists of the date the backup was made, like so:</p>
  
  <pre><code>2010-06-12_19-45-05.mysql.gz  
  2010-06-14_19-45-05.mysql.gz  
  2010-06-18_19-45-05.mysql.gz  
  2010-07-01_19-45-05.mysql.gz
  </code></pre>
  
  <p>What is a way to get the filename of the last file in the list, i.e. of the one which in alphabetical order comes last?</p>
  
  <p>In a shell script, I would like to do something like</p>
  
  <pre><code>LAST_BACKUP_FILE= ???
  gunzip $LAST_BACKUP_FILE;
  </code></pre>