[Shell command] Convert uppercase letters to lowercase with tr

Created on November 30, 2026

You can pass the POSIX character classes [:upper:] and [:lower:] to tr to convert uppercase letters from standard input to lowercase. Quote the classes so the shell passes them to tr as written.

printf '%s\n' 'HELLO' | tr '[:upper:]' '[:lower:]'
hello
Shell command