This question is similar to this one: Is it possible to print the content of the content of a variable with shell script? (indirect referencing)
In a file that is
a=${env1}is a good ${env2}
b=${env3}is a good ${env2}
I would like to show content of this file to:
a=tom is a good cat
b=jerry is a good mouse
I tried this:
tmp=`cat a.conf`
echo $tmp # environmental variables are not interpreted, and file format changed, hard to read
echo ${!tmp} # no ...
Besides, above idea is kinda detour.