Note: This site is currently "Under construction". I'm migrating to a new version of my site building software. Lots of things are in a state of disrepair as a result (for example, footnote links aren't working). It's all part of the process of building in public. Most things should still be readable though.

Convert A String To Lower Case On The Command Line With tr

The `tr` command can convert a string to lowercase in bash, zsh, etc... For example:

Code

echo "Alfa Bravo" | tr '[:upper:]' '[:lower:]'

Results

alfa bravo

References

  • This page has a slew of other ways to lower case strings