comm

    comm command for MoonX.

    command-line
    moonx
    wasm
    Download zip
    Author
    Version
    0.2.7
    License
    Apache-2.0
    Last updated
    4 days ago
    Downloads
    164

    #comm

    Development candidate: cli/comm@0.2.7. Publication is separate; latest.json records the uploaded coordinates.

    Compare sorted text files for MoonX.

    moonx cli/comm@0.2.7 [-123] [-z] FILE1 FILE2

    #Supported scope

    Print records unique to the first file, unique to the second, and common to both. Use - for stdin; inputs must use C-byte sort order.

    #Options

    OptionDescription
    -1Suppress column 1 (lines unique to FILE1).
    -2Suppress column 2 (lines unique to FILE2).
    -3Suppress column 3 (lines in both files).
    --output-delimiter=STRSeparate columns with STR (empty means NUL).
    --totalPrint counts for all three columns and a total label.
    --check-orderDiagnose unsorted input.
    --nocheck-orderDo not diagnose unsorted input.
    -z, --zero-terminatedEnd records with NUL instead of newline.
    --help / --versionShow help / package version.

    #Extension and diagnostic contract

    Project aliases: --suppress-1 = -1; --suppress-2 = -2; --suppress-3 = -3. -h is a project alias of --help.

    See the finite option and diagnostic profile for the scope and upstream distinction.

    #Argument and exit-status contract

    Ordinary option/operand errors exit 1; documented capability refusals retain their own status.

    #Limitations

    • Locale-dependent collation is unsupported.
    • Default order checking is conditional; use --check-order to reject disorder immediately.

    #Examples

    moonx cli/comm@0.2.7 left.txt right.txt moonx cli/comm@0.2.7 -12 left.txt right.txt

    Source Files