Command
trExplanation
tr translates, squeezes, and/or deletes characters from standard input.
Examples
Convert to uppercase
tr 'a-z' 'A-Z' < file.txtRemove spaces
tr -d ' ' < file.txtSqueeze multiple spaces
tr -s ' ' < file.txttrtr translates, squeezes, and/or deletes characters from standard input.
Convert to uppercase
tr 'a-z' 'A-Z' < file.txtRemove spaces
tr -d ' ' < file.txtSqueeze multiple spaces
tr -s ' ' < file.txt