bash string with variable code example
Example 1: combine strings bash
foo="Hello"
foo="${foo} World"
echo "${foo}"
> Hello World
Example 2: bash store string in variable
${!var} #Just use to use reference value inside another variable ;)
foo="Hello"
foo="${foo} World"
echo "${foo}"
> Hello World
${!var} #Just use to use reference value inside another variable ;)