I have a ridiculous question due to a ridiculous problem.
Normally if I want to get the contents of an environment variable in UNIX shell, I can do
Using ${!VAR_NAME} should be what you are looking for
${!VAR_NAME}
> FOO=BAR123 > VAR_NAME=FOO > echo ${VAR_NAME} FOO > echo ${!VAR_NAME} BAR123