Replace or delete characters from a stream.
Section: Viewing and Text Basics
Translate or delete characters
bash
bash
tr '[:lower:]' '[:upper:]' < input.txtExplanation
Also useful for squeezing repeated delimiters with `-s`.
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 Viewing and Text Basics