DEV Community

Today I Learned about the tr in Unix

Patrick Wendo on May 23, 2022

tr is a Unix command that is an abbreviation of translate or transliterate, indicating its operation of replacing or removing specific characters i...
Collapse
 
mccurcio profile image
Matt Curcio

My favorite is:
tr '[:lower:]' '[:upper:]'

This makes some things easier to deal with only upper case rather than both cases.

Collapse
 
w3ndo profile image
Patrick Wendo

Oh this is nice.