Sign in

    tr

    tr command for MoonX.

    command-line
    moonx
    wasm
    Download zip
    Author
    Version
    0.2.1
    License
    Apache-2.0
    Last updated
    8 hours ago
    Downloads
    35

    Dependencies

    #tr for moonx

    Version 0.2.1 behavior is documented here. The support record separates local verification from published MoonX behavior; moonx examples use registry releases.

    Translate, squeeze, or delete bytes read from stdin:

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

    Options: -d delete SET1 bytes, -s squeeze repeats, and -c/-C complement SET1. -t truncates SET1 to SET2's length. Sets support escapes (\n, \t, \123), byte ranges, C-locale character and equivalence classes, and [CHAR*COUNT] or SET2-filling [CHAR*] repetition. Operates on raw bytes with C-locale rules; locale data beyond that profile is not implemented. The command does not rewrite environment locale variables.

    #Standalone metadata

    Standalone --version prints exactly tr 0.2.1 followed by one newline. Standalone --help starts with Usage: tr, lists both metadata options, and ends with a newline. Both write to stdout, leave stdin unread, and exit with status 0. Exact-version publication and verification remain recorded separately in the support record.

    Source Files

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io