xuniq is a Rust command-line utility for text-processing workflows. It’s designed for fast line deduplication and fits neatly into shell pipelines when you need a lightweight tool focused on speed and streaming input rather than sorting-based approaches.
This is free and open source software.
Key Features
- Removes duplicate lines from standard input and writes unique lines to standard output.
- Doesn’t require input to be sorted before processing.
- Preserves the first occurrence of each line as it appears in the input stream.
- Offers a
--capacityoption to set the expected number of lines. - Provides a
--safemode that uses exact string matching to avoid collisions, at the cost of higher memory use.
Website: github.com/lalitshankarch/xuniq
Support:
Developer: Lalit Shankar Chowdhury
License: MIT License

xuniq is written in Rust. Learn Rust with our recommended free books and free tutorials.
Related Software
| Alternatives to uniq | |
|---|---|
| runiq | An efficient way to filter duplicate lines from input, à la uniq |
| huniq | Removes duplicates from stdin using a hash table |
| nauniq | Non-adjacent uniq |
| semiuniq | Removes nearby repeated lines in a file |
| uq | Removes duplicate lines from the output, regardless of the order |
| zet | Perform set operations on files considered as sets of lines |
| anew | Adds new lines to files, skipping duplicates |
| anewer | Appends lines from stdin to a file if they don't already exist in the file |
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. |


Please read our Comment Policy before commenting.