sed to remove text from file

Trying to use sed to, in-place, remove specific text from a file. Since there are / in the text I use | to escape that character. Thank you :).

sed -i -e 's|xxxx://www.xxx.com/xx/xx/xxx/.*/|' /home/cmccabe/list
sed: -e expression #1, char 51: unterminated `s' command 

It is missing a | character

This doesen't seem to work although it does run:

sed -i -e 's|^|xxxx://www.xxx.com/xxx/xx/xxxx/list/|' /home/cmccabe/list

Thank you :).

Hi cmccabe,

You are going to have to explain a bit more what you mean by "This [doesn't] seem to work". There is not much going on there.
sed will place the string: xxxx://www.xxx.com/xxx/xx/xxxx/list/ in front of every line and edit the file list .

You might need to explain your expectation and maybe show some bits of the result.

For troubleshooting you might want to test as:

echo "^This was the beginning before" | sed 's|^|xxxx://www.xxx.com/xxx/xx/xxxx/list/|'
xxxx://www.xxx.com/xxx/xx/xxxx/list/^This was the beginning before

You want to substitute the matching text with nothing. Then it is

sed -i -e 's|xxxx://www.xxx.com/xx/xx/xxx/.*/||'