Selection of utilities

uniqs – alternative to uniq

uniqs is a Rust command-line utility that serves as an alternative to uniq with streaming support.

It’s intended for text-processing workflows where you want to remove repeated lines as data is read, without relying on a prior sort step, making it a good fit for pipelines and larger input streams.

This is free and open source software.

Key Features

  • Reads from standard input by default, with optional input and output file arguments.
  • Writes each distinct line once, ignoring lines that have already appeared earlier in the input.
  • Includes a --count option to prefix lines with their number of occurrences.
  • Supports use in shell pipelines as well as direct file-to-file processing.
  • Provides a completion subcommand to generate shell completion scripts.

Website: github.com/simnalamburt/uniqs
Support:
Developer: Jihyeon Kim
License: Apache License 2.0 or MIT License

uniqs commands, arguments, and options

uniqs is written in Rust. Learn Rust with our recommended free books and free tutorials.


Related Software

Alternatives to uniq
runiqAn efficient way to filter duplicate lines from input, à la uniq
huniqRemoves duplicates from stdin using a hash table
nauniqNon-adjacent uniq
semiuniqRemoves nearby repeated lines in a file
uqRemoves duplicate lines from the output, regardless of the order
zetPerform set operations on files considered as sets of lines
anewAdds new lines to files, skipping duplicates
anewerAppends lines from stdin to a file if they don't already exist in the file

Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted