I have a file containing a list of replacement pairs (about 100 of them) which are used by sed to replace strings in files.
sed
The pairs go like:
You can use sed to produce correctly -formatted sed input:
sed -e 's/^/s|/; s/$/|g/' replacement_list | sed -r -f - file