To replace all the occurrences of 'foo' in a text file with some other string, the usual Emacs command is M-x replace-string.
Off late, I have had to replace several such strings in my text files. Doing
M-x replace-string for every expression I want to replace is tiring. Is there any Emacs command to 'batch replace' a bunch of strings with their alternatives?
This might look something like,
M-x batch-replace-strings RET foo1, foo2, foo3, RET bar1, bar2, bar3 RET
where RET stands for hitting the return key.
So now foo1 has been replaced with bar1, foo2 with bar2 and foo3 with bar3.