mitsutoshi / uni

uni is a command to make unique text like uniq command.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

uni

License: MIT

uni is a command to make unique text like uniq command.

The difference with uni is that it does not require sorting of the input data.

How to use

uni receives text from stdin and unique it.

% cat text
a
c
b
c

% cat text | uni
a
c
b

How to install

Clone this repository to your computer and make a binary for your OS.

Note

awk can do the same. 😉

cat text | '!a[$0]++{print}'

About

uni is a command to make unique text like uniq command.

License:MIT License


Languages

Language:Rust 100.0%