title: YAML parser from bash
body: <p>I am developing a pre-prod server for a Symfony2 app</p>
  <p>I made a little hook script to update all of my git repositories which contain a Symfony app.</p>
  <pre><code># ...
  
  # Save old database
  DATABASE_NAME=`YAML Parser Command` 'app/config/parameters.yml' database_name
  TODAY=`date +&quot;%Y-%m-%d-%H:%M:%S&quot;`
  logger -t &quot;Update website Symfony2&quot; &quot;Save SQL in $TODAY.sql&quot;
  mysqldump $DATABASE_NAME &gt; sqlSave/$TODAY.sql 2&gt;&amp;1 | logger -t &quot;Update website Symfony2&quot;
  # Update database with doctrine
  php app/console doctrine:schema:update --force  2&gt;&amp;1 | logger -t &quot;Update website Symfony2&quot;
  
  # ...
  </code></pre>
  <p>How can I have access to the database name on this script ?</p>
  <p>My server is on Debian. Is there a package to parse YAML?</p>