Currently I use:
sed -i -e "5a\\
${text}" $filename
to append something to a certain line, where the variable text contains a string such as "\epsilon".
When using
echo -E $text
the string is displayed just fine, but when I expand it in the string
I pass to sed, all escape characters get expanded and the result is
not what I would want.
How can I get sed to use the raw contents of that string without escaping anything?