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


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
Last update:
2014-12-16 21:28
Author:
Chris Burton
Revision:
1.1
Average rating:0 (0 Votes)

You cannot comment on this entry

Chuck Norris has counted to infinity. Twice.

Records in this category

Tags