I have a environment variable called NAME
export NAME="xyz"
and inside a file test.txt , I have a line
name=$NAME
I read the file and assigned the line to a variable y
y=`cat test.txt`
Now I am printing the variable y
echo $y
How can I get an output of name=xyz instead name=$NAME?