/uniqs

uniq(1) alternative with streaming support

Primary LanguageRustOtherNOASSERTION

uniqs

uniq(1) alternative with streaming support.

$ uniq -h
uniq(1) alternative with streaming support

Usage: uniqs [OPTIONS] [INPUT] [OUTPUT]

Arguments:
  [INPUT]   Path of the input file (default: stdin)
  [OUTPUT]  Path of the output file (default: stdout)

Options:
  -c, --count    Prefix lines by the number of occurrences
  -h, --help     Print help (see more with '--help')
  -V, --version  Print version

Comparison with uniq(1)

... | sort | uniq ... | uniqs ... | uniqs -c
Video of the results when using sort-then-uniq Video of the results when using uniqs Video of the results when using uniqs with a count option

Installation

Using Homebrew in macOS:

brew install simnalamburt/x/uniqs

Using Cargo:

cargo install uniqs

 


uniqs is primarily distributed under the terms of both the Apache License (Version 2.0) and the MIT license. See COPYRIGHT for details.