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 comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.

This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more.

Know a useful open source Linux program that we haven’t covered yet? Let us know by completing this form.
Subscribe
Notify of
guest
6 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Brummie
Brummie
2 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
2 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