tr

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

    tr
    coreutils
    text
    bytes
    cli
    wasm
    Download zip
    Author
    Version
    0.1.1
    License
    Apache-2.0
    Last updated
    25 days ago
    Downloads
    11

    Dependencies

    #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