title: Create dynamic variable name bash and get value
body: <p>I have a function in bash that get param a string, for example:</p>
  
  <p><code>MYSQL_DATABASE</code> then I want in my file to create a var named <code>VAR_MYSQL_DATABASE</code> but I can`t get the value.</p>
  
  <pre><code>create_var()
  {
  
      read -p "Enter $1 : " VAR_$1
      printf VAR_$1 // print VAR_MYSQL_DATABASE_NAME instead what I typed, so how do I get the value?
      if [[ -z VAR_$1 ]]; then
          printf '%s\n' "No input entered. Enter $1"
          create_entry $1
      fi  
  }
  
  create_var "MYSQL_DATABASE_NAME"
  </code></pre>