title: import variables into bash script from a config file
body: <p>I would like to import variables like username, password, host name from a config.cfg file so that I can use them inside the bash script file script.sh</p>
  
  <pre><code>user = ""
  password = ""
  host = ""
  </code></pre>
  
  <p>how can I do that, so that in the script.sh file I can use the credentials that are set in the config.cfg file to excute the following in the script:</p>
  
  <pre><code>mysqldump --user="$user" --password="$password" --host="$host" $db $tabl &gt; "./backups/$db/$db-$tabl-$time"
  </code></pre>