tr

Translate, squeeze, or delete bytes like tr, runnable via moonx

tr
coreutils
text
bytes
cli
wasm
moon add bobzhang/tr@0.1.0
Download zip
Author
Version
0.1.0
License
Apache-2.0
Last updated
1 hour ago
Downloads
1

Dependencies

README

#tr for moonx

Translate, squeeze, or delete bytes read from stdin:

printf 'hello' | moonx bobzhang/tr 'a-z' 'A-Z' printf 'a b' | moonx bobzhang/tr -s ' ' moonx bobzhang/tr -d '\n' < file.txt

Options: -d delete SET1 bytes, -s squeeze repeats, -c complement SET1. Sets support escapes (\n, \t, ...), byte ranges (a-z), and the classes [:lower:], [:upper:], [:digit:], [:alpha:], [:alnum:], [:space:], [:xdigit:]. Operates on bytes; set characters must be Latin-1.

Source Files

Powered by MoonBit

Site sourceReport issuePackagesBuild queueSkillsStatistics

© 2026 mooncakes.io