string variabel bash code example
Example 1: bash variable in string
${!var} #Just use to use reference value inside another variable ;)
Example 2: sh concat string
VAR1="Hello,"
VAR2=" World"
VAR3="$VAR1$VAR2"
echo "$VAR3"
${!var} #Just use to use reference value inside another variable ;)
VAR1="Hello,"
VAR2=" World"
VAR3="$VAR1$VAR2"
echo "$VAR3"