I have an xml file with a line: <includes>xyz</includes>
I have to append a value to xyz like <includes>xyz abc/v1.2.3</includes>
The value abc/v1.2.3 is stored in a variable: stringReplace="abc/1.2.3"
I am trying to achieve the same using sed:
sed -i -e "s/<includes>xyz<\/includes>/<includes>xyz\ $stringReplace<\/includes>/g" localConfig.xml
However, I am getting "sed: -e expression #1, char 41: unknown option to `s'".
Please help or any other way of doing it.