How do I convert text in a file to lower case?

Chris Burton
2014-12-16 21:28

Converting the content of a file to lowercase a simple process using ‘tr’

cat input.txt | tr ‘[:upper:]‘ ‘[:lower:]‘ > output.txt

Remember the input.txt and output.txt can not be the same file.

To change a file to all uppercase just swap upper and lower.

Tags: lower, lower case, tr, upper, uppercase
Average rating: 0 (0 Votes)

You cannot comment on this entry