I am trying to emulate a replace command which swaps two characters, with a sed script,but the obvious choice:sed -e 's/a/b/g' -e 's/b/a/g' does no work. Can you point me how to do it correctly?
how to emulate replace a b b a with a sed?
text processing;sed;replace;tr