cmp

    cmp command for MoonX.

    command-line
    moonx
    wasm
    Download zip
    Author
    Version
    0.2.6
    License
    Apache-2.0
    Last updated
    8 hours ago
    Downloads
    152

    #cmp

    Compare two inputs byte by byte through MoonX.

    #Usage

    moonx cli/cmp first.bin second.bin moonx cli/cmp -s first.bin second.bin moonx cli/cmp -n 16 first.bin second.bin

    Report the first difference by default. Exit 0 for equal input, 1 for differences and 2 for errors.

    #Common options

    OptionDescription
    -s, --silentReport status only; stop at the first difference.
    --quietReport status only; stop at the first difference.
    -l, --verboseList every differing byte.
    -b, --print-bytesShow differing byte values.
    -n VALUE, --bytes VALUECompare at most LIMIT bytes.
    -i VALUE, --ignore-initial VALUESkip initial bytes independently.
    --helpShow help.
    --versionShow the version.

    #Notes

    • -s suppresses diagnostics; -l lists differing bytes. Skip offsets and comparison limits are byte counts.

    See the compatibility guide for the supported profile.

    Source Files