TR(1) General Commands Manual TR(1)

tr - Translate or delete characters

tr [OPTION]... SET1 [SET2]

Translate or delete characters

use the complement of SET1
delete characters in SET1, do not translate
replace each sequence of a repeated character that is listed in the last specified SET, with a single occurrence of that character
first truncate SET1 to length of SET2
Print help
Print version
[sets]

Translate, squeeze, and/or delete characters from standard input, writing to standard output.

v(uutils coreutils) 0.11.0

2026-09-01