I have a file in which i have to find a String
and replace it. It giving me error when i am using sed because the replace string contains "/".
replace_string=6W4kngjd3c7oOShnG7iWYQpZVzr4S88G20fujmP7cdM1m5Gw550WfMD38DA4g6O4qxUIJJwt2OtLTRmh7vWz+AWQVmIMajk3OylEfR/X+afrD6YOeGLYHU6Ef4DYv/3x
sed -i -e 's|string|'$replace_string'|g' $FILEPATH
This is the error which its giving -
sed: -e expression #1, char 38: unterminated `s' command
Is there any other method other than sed or any other way i can use sed?