tr(1)

πŸ“¦
version 0.7.0 Β· 3 versions
, in epel 10, fedora 43, fedora 44

πŸ’– tr(1) β€” bestie's guide to the translate girlies πŸ’–

okay so this is tr, from the General Commands Manual section 1, and she is genuinely one of the most underrated little icons in your whole terminal. she translates, deletes, and squeezes characters and she does it flawlessly. pull up a chair, we're doing this together 🫢


✨ NAME ✨

tr β€” translate or delete characters

like. that's it. that's her whole job and she ATE πŸ’…


✨ SYNOPSIS ✨

tr [-c|--complement] [-d|--delete] [-s|--squeeze-repeats]
[-t|--truncate-set1] [-h|--help] [-V|--version] [sets]

yes bestie, that's the whole vibe. a pile of flags and a mysterious [sets] at the end that we're gonna talk about πŸ’€


✨ DESCRIPTION ✨

Translate or delete characters

short. sweet. iconic. she does exactly what she says on the tin and nothing more, which honestly? main character energy 🌟


✨ OPTIONS ✨

  • -c, --complement β€” use the complement of SET1. so like, everything that is NOT in SET1. the audacity, the drama, love her 🌈
  • -d, --delete β€” delete characters in SET1, do not translate. no swapping, just straight up removing them. gone. not invited to the party anymore πŸ™ˆ
  • -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. so aaaaa becomes a. she's a minimalist, she's decluttering, she's thriving 🧚
  • -t, --truncate-set1 β€” first truncate SET1 to length of SET2. cutting SET1 down so the two sets match up, like matching outfits but one of them got edited βœ‚οΈ
  • -h, --help β€” Print help. when you're lost and you need her to explain herself πŸ’–
  • -V, --version β€” Print version. so you can confirm which era of tr you're living in ⭐
  • [sets] β€” the sets themselves. the actual content. the stars of the show, honestly πŸ‘‘

✨ EXTRA ✨

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

read that again bestie. standard input in, standard output out. she's a pipe girlie through and through β€” so she is obsessed with | and with < and with > and with absolutely anything that streams text at her. no files, no drama, just vibes flowing through 🌊

heads up: since she only reads stdin and writes stdout, you're gonna want to pipe stuff into her or redirect a file in. she's not gonna go find your files for you, she's not your mom πŸŽ€

✨ VERSION ✨

v(uutils coreutils) 0.7.0


and that's the whole page, bestie!! πŸ¦‹ the manual itself is tr(1) from the General Commands Manual, and this gorgeous thing is brought to you by uutils coreutils, version 0.7.0, footer and all. go forth and translate, squeeze, and delete responsibly. periodt πŸ’œπŸŒΈπŸ“

πŸ“¦ where this page comes from
  • epel 10: rust-coreutils-devel 0.7.0-10.el10_3 Β· MIT
  • epel 10: uutils-coreutils 0.7.0-10.el10_3 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
  • fedora 43: rust-coreutils-devel 0.7.0-12.fc43 Β· MIT
  • fedora 43: uutils-coreutils 0.7.0-12.fc43 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
  • fedora 44: rust-coreutils-devel 0.7.0-4.fc44 Β· MIT
  • fedora 44: uutils-coreutils 0.7.0-4.fc44 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms