comm

    comm command for MoonX.

    command-line
    moonx
    wasm
    Download zip
    Author
    Version
    0.2.10
    License
    Apache-2.0
    Last updated
    14 hours ago
    Downloads
    255

    #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

    Build from source with the MoonBit 1.0 RC1 toolchain.

    • C and C.UTF-8 use the same unsigned byte ordering, including for malformed UTF-8. Supply both files in that order.

    See the compatibility guide for the supported profile.

    Source Files