unique

command module
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2023 License: MIT Imports: 8 Imported by: 0

README

unique

unique is a simple tool that outputs the unique lines of its input. That input can come from stdin or from a file.

Installation

Use Homebrew:
brew install ro-tex/tap/unique

Or brew tap ro-tex/tap and then brew install unique.

Build it yourself:

You will need Go for this.

go install github.com/ro-tex/unique@latest
Grab a binary:

If you prefer a binary, you can download a Linux or Mac one from https://github.com/ro-tex/unique/releases.

Usage

When no arguments are given, unique reads from the standard in. Running

echo " one\n one\n two\n one" | unique

will output

 one
 two

In order to read from a file, use the -f parameter:

unique -f file.dat

That is equivalent to

cat file.dat | unique

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL