2 releases

0.1.1 Oct 20, 2024
0.1.0 Jun 14, 2023

#131 in Filesystem

Download history 4/week @ 2024-09-23 3/week @ 2024-09-30 82/week @ 2024-10-14 59/week @ 2024-10-21 2/week @ 2024-10-28

143 downloads per month

Apache-2.0 OR MIT

12KB
202 lines

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.

Dependencies

~4–13MB
~179K SLoC