lower2UPPER and UPPER2lower simultaneously in vi
“vi” in the same txt file, this is my cmd to lowercase the UPPERCASE letters and UPPERCASE the lowercase letters at the same time:
:%!tr [a-z,A-Z] [A-Z,a-z]
Example: Translate—> tRANSLATE
Is there any other unique cmd to do the same?
Last edited by tqlong76; 03-03-2020 at 12:15 AM.
Reason: Giving an example for better understanding
|