Question: I'm trying to use sed to update a config file using a bash script. I have a similar sed command right above this one in the script that runs fine. I can't seem to figure out why this is breaking:

```
sed -i.bak \
    -e s/"socketPath:'https://localhost:9091'"/"socketPath:'/socket'"/g \
    $WEB_CONF

```

Any ideas?

Answer: 
The quotes and double quotes are causing problems.
You are using them in view of the slashes in the string.
In sed you can use another delimiter, such as a #.

```
sed -e 's#socketPath:https://localhost:9091#socketPath:/socket#g' \
$WEB_CONF

```
Escape your slashes in the pattern or use a different delimiter like this:

```
sed -i.bak \
-e s%"socketPath:'https://localhost:9091'"%"socketPath:'/socket'"%g \
$WEB_CONF

```