I want append some lines through a bash script with sed. The script works but the output is wrong.
LINEB="word"
sed '/g id=\"..\"/a style=\"fill:$LINEB;\"' file.txt > foo.txt
I get <g id="ai" style="fill:$LINEB;">
instead of <g id="ai" style="fill:word;">
Even if I use all kinds of parenthesis.
/a
.