Martijn van Oosterhout <kleptog(at)svana(dot)org> writes:> On my system I need to at least escape the hyphen again:
> $ echo test_string | tr 'a_b' 'a\-b'> test-string
Hm. How about tr 'x_' 'x-'
regards, tom lane