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 // find // ftp // grep // gzip // hexdump // history // jq // kill // less // locate // ls // lsof // make // man // more // mv / ping // ps // psql // rename // rm // sed // split // ssh // strings // sudo // sysctl // talk // tar // telnet // time // top // touch // traceroute // tree // uname // uniq // uptime // vi // watch // Wget // who // whois // xargs

Best Free and Open Source SoftwareRead our complete collection of recommended free and open source software. Our curated compilation covers all categories of software.

The software collection forms part of our series of informative articles for Linux enthusiasts. There are hundreds of in-depth reviews, open source alternatives to proprietary software from large corporations like Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

There are also fun things to try, hardware, free programming books and tutorials, and much more.
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

6 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Brummie
Brummie
10 months 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
9 months 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
6 months 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