I need some text search-replace with minimal tools during linux startup. Sed does not work, probably it finds some special characters in my strings. Is there a solution to turn off this fancy regexp magic and do simple literal search-replace of all plain text occurrences in file? One example which I cannot get to work:
sed -i 's|<![CDATA[http://example.com/file.json]]>|mysvc://{source}|g' my-file.xml
I have about 10 of other different text fragments, these can be long XML, jsons or other with all kind of special chars inside. It would be nice if the command would be maintainable (readable) also.