I have the following sed
command:
sed -i "4i\ $CHANGES" ./CHANGELOG.rst
However, my $CHANGES
variable looks something like this:
title
-----
* list
* elem
* elem
Hence, the above command fails with the following error: sed: -e expression #1, char 149: unknown command: '*'
. I understand that this happens because the contents of the $CHANGES
variable are somewhat interpreted, but how do I specify to only use the string in the variable as a raw string, without interpreting its contents?