How do I solve this in bash
I have a variable called `
DEV_IP=192.168.0.1
I have another variable called
ENV_NAME=DEV
How would I call ENV_NAME
to get the IP Addess ?
like:
echo ${ENV_NAME}_IP
This is what I get when I run
echo ${"$ENV"_IP}
-bash: ${"$ENV"_IP}: bad substitution