Change all uppercase characters to lowercase with vi
Tags: Linux | Mac OS X | Misc
To change all uppercase characters of an entire text file to lowercase using vi(m) is very simple. Just use this magic command:
:%s/.*/\L&/
Or to do the opposit - to change all lowercase characters to uppercase use this command:
:%s/.*/\U&/