Skip to content
Advertisement

How to toggle case for text in a file [closed]

I want to know the command that will convert upper-case characters to lower-case characters and lower-case characters to upper-case characters.

It has to work in the shell of Unix machines.

Advertisement

Answer

tr A-Za-z a-zA-Z

(unfortunately, ascii only)

Advertisement