How to convert all text from upper case to lower case on Linux?

How to convert all text in a file from upper case to lower case and vice versa on Linux?

asked Jan 21, 2015 by Eric Z Ma (44,280 points)

1 Answer

 
Best answer

Convert from upper case to lower case:

tr '[:upper:]' '[:lower:]' < input.txt > output.txt

Convert from lower case to upper case:

tr '[:lower:]' '[:upper:]' < input.txt > output.txt
answered Jan 21, 2015 by Eric Z Ma (44,280 points)

Please log in or register to answer this question.

Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost

...