comm

    comm command for MoonX.

    command-line
    moonx
    wasm
    Download zip
    Author
    Version
    0.2.9
    License
    Apache-2.0
    Last updated
    yesterday
    Downloads
    202

    #comm

    Compare two sorted text files through MoonX.

    #Usage

    moonx cli/comm first.txt second.txt moonx cli/comm -12 first.txt second.txt

    Print three columns: records unique to the first file, unique to the second, and shared. -1, -2 and -3 suppress the corresponding columns.

    #Common options

    OptionDescription
    -1Suppress lines unique to the first input.
    -2Suppress lines unique to the second input.
    -3Suppress lines common to both inputs.
    --output-delimiter VALUESeparate columns with STR (empty means NUL).
    --totalPrint counts for all three columns and a total label.
    -h, --helpShow help.
    --check-orderDiagnose unsorted input.
    --nocheck-orderDo not diagnose unsorted input.
    -z, --zero-terminatedEnd records with NUL instead of newline.
    --versionShow the version.

    #Notes

    Compatible with the MoonBit 2026-11-17 toolchain.

    • Inputs must use C-locale byte ordering. Order-check options control diagnostics; they do not sort the files.

    See the compatibility guide for the supported profile.

    Source Files