~/tr(1) en

TR(1)General Commands ManualTR(1)

NAME

tr - swap one set of characters for another

SYNOPSIS

tr [-d] set1 [set2]

DESCRIPTION

Reads standard input and writes it back with the characters in the first set turned into the ones in the second, position by position. Ranges are written a-z. A second set shorter than the first is padded with its own last character, which is what tr does with one.

It reads standard input and nothing else, the way tr always has: give it a file through a pipe.

OPTIONS

-d
delete the characters in set1 rather than replacing them

EXAMPLES

echo hello | tr a-z A-Z

cat about.md | tr -d aeiou

SEE ALSO

cut(1), sort(1), sh(1)

tilenkoren.com2026TR(1)