Translate characters from lower to upper case.
Section: tr Translation and Character Operations
Convert lowercase to uppercase
bash
bash
tr '[:lower:]' '[:upper:]' < input.txtExplanation
Character classes make case conversions portable.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing tr Translation and Character Operations