i am looking for a way to replace a string in a file with a string that contains a slash by using sed.
connect="192.168.100.61/foo"
srcText="foo.bar=XPLACEHOLDERX"
echo $srcText | sed "s/XPLACEHOLDERX/$connect"
the result is
sed: -e Expression #1, Character 32: Unknown option for `s'