Find

Alternatives to popular CLI tools: uniq

This article spotlights alternative tools to uniq, a utility that reports or omits repeated lines.

uniq man page

The software featured here is free and open source. All tools provide a command-line interface (CLI) unless otherwise stated.

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
Are we missing any open source alternatives to uniq? Please let us know.
3
Any other open source alternatives to uniq?x

All the CLI tools in this series.

Alternatives to CLI tools
age // awk // bc // cal // cat // cd // chmod // cksum // cloc // cmp // compress // cp // cron // curl // cut // date // dd // df // diff // dig // du // fdisk // file // find // free // ftp // grep // gzip // hexdump // history // jq // kill // less // locate // ls // lsof // make // man // more // mv / ping // ps // psql // rename // rm // sed // split // ssh // stow // strings // sudo // sysctl // tail // talk // tar // telnet // time // top // touch // traceroute // tree // uname // uniq // uptime // vi // watch // Wget // who // whois // xargs

Best Free and Open Source Software Explore our carefully curated directory of recommended free and open source software, covering every major software category.

The directory forms part of our extensive collection of articles for Linux enthusiasts. It includes hundreds of detailed reviews, together with free and open source alternatives to proprietary software from companies such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

LinuxLinks also covers interesting projects worth exploring, Linux-compatible hardware, free programming books and tutorials, and much more.

Know a useful free and open source Linux application that we haven’t covered? Tell us about it using our submission form.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
6 Comments
Oldest
Newest Most Voted
Brummie
Brummie
3 years ago
Are we missing any open source alternatives to uniq? Please let us know." Read more »

What about uq. It’s an alternative to sort | uniq.

Like so many of these alternatives to traditional tools, it’s written in the wonderful Rust language.

Lance
Lance
3 years ago
Are we missing any open source alternatives to uniq? Please let us know." Read more »

Please add zet, some of its subcommands are similar to uniq

Oskar
Oskar
2 years ago
Are we missing any open source alternatives to uniq? Please let us know." Read more »

I suggest adding anewer and anew. They are sort of alternatives to uniq