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?
export NAME="xyz"? – WEBjuju Jan 18 '18 at 15:31./script.sh someArgumentand accessing it with$1. – 111--- Jan 18 '18 at 15:45