Convert String To Lower Case On The Command Line With tr

November - 2021

Use the tr command to convert a string to lowercase in bash, zsh, etc...

echo "Some String" | tr '[:upper:]' '[:lower:]'


some string

Could also put that in a function, but I haven't gotten around to that yet.

There's a slew of other ways to do it listed here