tr

    tr command for MoonX.

    command-line
    moonx
    wasm
    Download zip
    Author
    Version
    0.1.4
    License
    Apache-2.0
    Last updated
    16 days ago
    Downloads
    13

    Dependencies

    #tr for moonx

    Support note (2026-09-05): this README is supplementary. The support record is the only capability authority; it separates native compatibility evidence from Wasm policy and smoke evidence. Options mentioned here but not promoted in that record are not compatibility guarantees.

    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 under the fixed LC_ALL=C profile; locale data beyond that profile is intentionally not consulted.

    Source Files

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io