Change all uppercase characters to lowercase with vi

Drucken
PDF

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&/


© bitRACE GmbH 2007-2017. All Rights Reserved.