Convert text to lowercase or uppercase
convert text to lowercase linux | tr uppercase to lowercase | normalize case of domain list | tr | convert | texttr '[:upper:]' '[:lower:]' < domains.txtReplaces each uppercase letter with the corresponding lowercase letter and prints the result to the console. For the opposite direction, swap the two classes. Handy before sort -u, so that Example.com and example.com are recognized as the same.
Note: GNU tr works byte by byte and leaves non-ASCII letters such as Ä or Ö in UTF-8 unchanged. For text containing such characters, sed 's/.*/\L&/' is the more reliable option.
Also searched as
- convert text to lowercase linux
- tr uppercase to lowercase
- normalize case of domain list