I would like to replace a set of characters with corresponding characters from another set, something like this:
original set: ots
"target" set: u.x
foobartest → fuubar.ex.
Translations/transliterations like this are the specialty of the tr command:
$ echo 'foobartest' | tr 'ots' 'u.x'
fuubar.ex.
Unfortunately tr doesn't support changing files in-place like sed does.
I would like to use sed so I don't have to reinvent the wheel of juggling temp files.