>_ linuxcommand.dev
Text processing

tr

Translates or deletes characters.

Ubuntu CentOS Debian Arch SUSE Slackware Alpine Fedora
Verified: 2025-09-09
Syntax
$tr [OPTIONEN] ZEICHENSET1 [ZEICHENSET2]
Examples
$echo 'abc' | tr 'a-z' 'A-Z'
$tr -d '\n' < datei.txt
Typical use cases
?
Standard usage
tr --help
Note For simple character manipulations
Export