(TIL) Nix: Convert file contents to lower case with tr

less than 1 minute read

To convert the contents of a file to all lower case, you can use:

>>> tr A-Z a-z < input  # convert ASCII characters
>>> tr '[:upper:]' '[:lower:]' < input  # convert all alphabetic characters

Via unix.stackexchange.com.

Tags: ,

Categories:

Updated:

Comments