bash use variable value as variable name 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 ;)