bash get variable based on a variable code example
Example: bash get variable value by variable name
${!var} #Just use to use reference value inside another variable ;)
${!var} #Just use to use reference value inside another variable ;)