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?

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

Eric Ma

Eric is a systems guy. Eric is interested in building high-performance and scalable distributed systems and related technologies. The views or opinions expressed here are solely Eric's own and do not necessarily represent those of any third parties.

Leave a Reply

Your email address will not be published. Required fields are marked *