TR(1) General Commands Manual TR(1)

# [NAME](#NAME)

tr - Translate or delete characters

# [SYNOPSIS](#SYNOPSIS)

**tr** \[OPTION]... SET1 \[SET2]

# [DESCRIPTION](#DESCRIPTION)

Translate or delete characters

# [OPTIONS](#OPTIONS)

[**-c**, **--complement**](#c)

use the complement of SET1

[**-d**, **--delete**](#d)

delete characters in SET1, do not translate

[**-s**, **--squeeze-repeats**](#s)

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**](#t)

first truncate SET1 to length of SET2

[**-h**, **--help**](#h)

Print help

[**-V**, **--version**](#V)

Print version

\[*sets*]

# [EXTRA](#EXTRA)

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

# [VERSION](#VERSION)

v(uutils coreutils) 0.12.0

2026-10-16

---

Document: tr(1) from uutils 0.12.0-r4 (Chainguard OS)
Source: https://github.com/uutils/coreutils
