Echo when used with -e option doesn't seem to output/expand value of a variable
Using this way as it's been part of framing json file
Tried with backtick to expand variable value. And also with (( to eval as expression
echo -e '"compVersion:","$compLatestVer",' >> framed.json
eg : with compLatestVer=2.3.4 When I echo it, it just prints
echo -e '"compVersion:","$compLatestVer",'
to file rather than expanded value
I tried with
echo -e '"compVersion:","`$compLatestVer`",'
Also with
echo -e '"compVersion:","((compLatestVer))",'
without luch
echo -e '"compVersion:","2.3.4",'