Escaping variable names inside other variables in Bash scripts
If you have a variable that comprises of another variable like so and try the following:
This won’t work because Bashwill interpret the underscore after
$var_name as part of the variable name and look for a variable called
$var_name_and_extension and not find it.