tr(1)
π 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. soaaaaabecomesa. 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 oftryou'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