echo variable in string bash code example
Example 1: echo variable bash
echo "${var}"
Example 2: bash variable in string
${!var} #Just use to use reference value inside another variable ;)
echo "${var}"
${!var} #Just use to use reference value inside another variable ;)