bash scripting use variable in string code example
Example 1: bash store string in variable
${!var} #Just use to use reference value inside another variable ;)
Example 2: bash use variable in string
domain='http://www.whitehouse.gov'
path='/some/path'
base_url="$domain$path"