I can't believe I can't get this to work - but:
I have a file that contains
and I want to replace the apostrophe (') with '
So I thought
cat ./test |sed -e s/\'/\&apos\;/g would do the trick, but it doesn't. It just does
So it seems to me that I have not escaped the replay character (&) properly.
If anyone can help with this I would appreciate it - it must be so simple.
Thanks in advance,