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

~ 0 min
2014-12-16

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.

Average rating 0 (0 Votes)

You cannot comment on this entry