wc

    wc command for MoonX.

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

    #wc

    Count lines, words and bytes through MoonX.

    #Usage

    moonx cli/wc input.txt moonx cli/wc -l first.txt second.txt printf 'hello world\n' | moonx cli/wc -w

    Default output gives line, word and byte counts. Multiple inputs include totals; specific flags select individual measurements.

    #Common options

    OptionDescription
    -l, --linesCount newline bytes.
    -w, --wordsCount C-byte words.
    -c, --bytesCount bytes; both are identical in this profile.
    -m, --charsCount bytes; both are identical in this profile.
    -L, --max-line-lengthReport maximum C-profile display width.
    --helpShow help.
    --files0-from VALUERead NUL-delimited filenames; - selects stdin.
    --versionShow the version.

    Use --help for the complete option list.

    #Notes

    • The supported locale is C: -m counts bytes rather than UTF-8 characters. Display width uses the documented C-byte rules.
    • Reading regular-file stdin does not claim GNU physical descriptor-position alignment.

    See the compatibility guide for the supported profile.

    Source Files