New to sed, so trying to figure out following problem.
sed -e "s/menuentry \"test.*(/menuentry \"test image ${VERSION} (/" \
-e "s/menuentry \"Lost password change.*(/menuentry \"Lost password change ${VERSION} (/" \
-e "sX/boot/[A-Za-z0-9\.\-\@_]*X/boot/${VERSION}Xg" \
< test.txt
Above expression, the 3rd part
-e "sX/boot/[A-Za-z0-9\.\-\@_]*X/boot/${VERSION}Xg" gives an error
sed: -e expression #3, char 37: unknown option to `s' if $VERSION=FIX i.e contains "X".
What is the better way to deal with this? use another character as a delimiter, i tried ":" and it worked.