title: Change directory after unziping
body: <p>I am making a script that allow's me to unzip a given file. My problem is that i don't now how to change directory to the directory just created by the unzip process.
  I tried with this command, but it's not working: <code>SITE_DIRECTORY="$(ls -dt */ | head -1)"</code></p>
  
  <p>Any idea on how to get the name of the directory just extracted ?</p>
  
  <p>Edit: Now i got to <code>SITE_DIRECTORY=unzip $SITE_NAME | grep 'creating:' | head -1 | cut -d' ' -f5-</code></p>
  
  <p>But a new problem arise: the unzip command does not extract all the files.
  New ideas ?</p>