uniq

    uniq command for MoonX.

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

    #uniq

    Filter adjacent duplicate records through MoonX.

    #Usage

    moonx cli/uniq input.txt moonx cli/uniq -c input.txt

    Compare adjacent records, optionally skipping fields or bytes. Use sort first when equal records are not already adjacent.

    #Common options

    OptionDescription
    -c, --countPrefix each record with its occurrence count.
    -d, --repeatedPrint only repeated records.
    -u, --uniquePrint only groups that occur once.
    -i, --ignore-caseIgnore ASCII case when comparing adjacent records.
    -f VALUE, --skip-fields VALUESkip fields, then bytes before comparing. Default: 0.
    -s VALUE, --skip-chars VALUESkip fields, then bytes before comparing. Default: 0.
    -z, --zero-terminatedUse NUL-delimited records.
    --helpShow help.
    --versionShow the version.

    Use --help for the complete option list.

    #Notes

    • Field handling and case folding use C-locale byte semantics.

    See the compatibility guide for the supported profile.

    Source Files