tr

    tr command for MoonX.

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

    #tr

    Translate, delete or squeeze input bytes through MoonX.

    #Usage

    printf 'hello\n' | moonx cli/tr 'a-z' 'A-Z' printf 'a b\n' | moonx cli/tr -s ' '

    Read stdin and write stdout. Sets support ranges, byte escapes and C-locale character classes.

    #Common options

    OptionDescription
    -d, --deleteDelete SET1 bytes.
    -s, --squeeze-repeatsCollapse repeated selected bytes.
    -c, --complementComplement SET1.
    -CComplement the first set.
    -t, --truncate-set1Truncate SET1 to SET2's length.
    --helpShow help.
    --versionShow the version.

    #Notes

    • Operations are byte-oriented, without Unicode case conversion or multibyte character classes.

    See the compatibility guide for the supported profile.

    Source Files