OS Manuals

/usr/bin/tr

Cross-platform Rust rewrite of the GNU coreutils.

From uutils 0.12.0-r6 (os), captured 2026-11-07 by running tr --help (exit 0). permalink

Translate or delete characters

Usage: tr [OPTION]... SET1 [SET2]

Arguments:
  [sets]...

Options:
  -c, --complement       use the complement of SET1 [alias: -C]
  -d, --delete           delete characters in SET1, do not translate
  -s, --squeeze-repeats  replace each sequence of a repeated character that is listed in the last
                         specified SET, with a single occurrence of that character
  -t, --truncate-set1    first truncate SET1 to length of SET2
  -h, --help             Print help
  -V, --version          Print version

Translate, squeeze, and/or delete characters from standard input, writing to standard output.
Options (6)
OptionDescriptionSource
-c, --complementuse the complement of SET1 [alias: -C]help + man
-d, --deletedelete characters in SET1, do not translatehelp + man
-s, --squeeze-repeatsreplace each sequence of a repeated character that is listed in the last specified SET, with a single occurrence of that characterhelp + man
-t, --truncate-set1first truncate SET1 to length of SET2help + man
-h, --helpPrint helphelp + man
-V, --versionPrint versionhelp + man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.