wc

    wc command for MoonX.

    command-line
    moonx
    wasm
    Download zip
    Author
    Version
    0.2.5
    License
    Apache-2.0
    Last updated
    10 hours ago
    Downloads
    94

    #wc

    Count input records and bytes for MoonX.

    moonx cli/wc@0.2.5 [-lwcmL] [--files0-from=FILE] [--total=WHEN] [FILE...]

    #Supported scope

    Read files or stdin and count lines, words and bytes by default. Supports selected counters and aggregate totals.

    #Options

    OptionDescription
    -l, --linesCount newline bytes.
    -w, --wordsCount C-byte words.
    -c, --bytes / -m, --charsCount bytes; both are identical in this profile.
    -L, --max-line-lengthReport maximum C-profile display width.
    --files0-from=FILERead NUL-delimited filenames; - selects stdin.
    --total=WHENSelect auto (default), always, never or only.
    --help / --versionShow help / package version.

    #Limitations

    • Unicode character counting and other locale profiles are unsupported.
    • --files0-from cannot be combined with positional files.

    #Examples

    moonx cli/wc@0.2.5 -l notes.txt printf 'one two\nthree\n' | moonx cli/wc@0.2.5

    Source Files

    Powered by MoonBit

    Site sourceReport issueModulesSkillsBuild queueStatistics

    © 2026 mooncakes.io