I have a text with random alphabetic characters and I want to change every character to his opposit one. ex. i have a character z, i change it in to a, b to y etc. I can't really find a better way to do this unless i do
sed -r -e 's/a/z/' -e 's/b/y/' ... 's/z/a/'
Is there a way to do this in a more simple way?
I just want to use the -r option in sed. Using the y command maybe?