This is kind of a weird one. I have the following string:
I have a variable called REDIRECT set to: https://working.${MYDOMAIN}/blah/blah.
https://working.${MYDOMAIN}/blah/blah
I need to
Just execute in bash:
eval REDIRECT=$REDIRECT
You may use this bash substitution:
echo "${REDIRECT/\${MYDOMAIN\}/$MYDOMAIN}"
or else, if you have envsubst utility then use:
envsubst
export MYDOMAIN envsubst <<< "$REDIRECT"