cmp

    cmp command for MoonX.

    command-line
    moonx
    wasm
    Download zip
    Author
    Version
    0.2.3
    License
    Apache-2.0
    Last updated
    9 days ago
    Downloads
    107

    #cmp

    Compare two byte streams for MoonX.

    moonx cli/cmp@0.2.3 [-b] [-s|-l] [-n LIMIT] [-i SKIP[:SKIP2]] FILE1 [FILE2]

    #Supported scope

    Compare files or stdin; omitted FILE2 means stdin. Exit 0 for equal inputs, 1 for differences and 2 for errors.

    #Options

    OptionDescription
    -b, --print-bytesShow differing byte values.
    -s, --silent, --quietReport status only.
    -l, --verboseList every differing byte.
    -n, --bytes=LIMITCompare at most LIMIT bytes.
    -i, --ignore-initial=SKIP[:SKIP2]Skip initial bytes independently.
    --help / --versionShow help / package version.

    #Limitations

    • -l and -s cannot be combined.

    #Examples

    moonx cli/cmp@0.2.3 first.bin second.bin moonx cli/cmp@0.2.3 -n 16 first.bin second.bin

    Source Files