Nix: Convert file contents to lower case with tr
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
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
Leave a comment