uniq

    uniq command for MoonX.

    command-line
    moonx
    wasm
    Download zip
    Author
    Version
    0.2.5
    License
    Apache-2.0
    Last updated
    10 hours ago
    Downloads
    98

    #uniq

    Filter adjacent duplicate records for MoonX.

    moonx cli/uniq@0.2.5 [-cduDiz] [--all-repeated[=METHOD]] [--group[=METHOD]] [-f FIELDS] [-s CHARS] [-w CHARS] [FILE]

    #Supported scope

    Read a file or stdin and compare adjacent records. Sort first for global deduplication; output is written to stdout.

    #Options

    OptionDescription
    -c / -d / -uCount occurrences / repeated records only / singletons only.
    -iIgnore ASCII case.
    -f, --skip-fields=N / -s, --skip-chars=NSkip fields, then bytes before comparing.
    -w, --check-chars=NLimit compared bytes.
    -D, --all-repeated[=METHOD]Print all duplicates; none, prepend or separate separators.
    --group[=METHOD]Print all groups; separate (default), prepend, append or both.
    -z, --zero-terminatedUse NUL-delimited records.
    --help / --versionShow help / package version.

    #Limitations

    • Comparison and case folding use C-byte rules.
    • --group conflicts with -c/-d/-D/-u; -c conflicts with -D.

    #Examples

    printf 'a\na\nb\n' | moonx cli/uniq@0.2.5 -c moonx cli/uniq@0.2.5 -d sorted.txt

    Source Files

    Powered by MoonBit

    Site sourceReport issueModulesSkillsBuild queueStatistics

    © 2026 mooncakes.io