# Uniq

## TL;DR

```sh
# Print all but duplicates lines.
uniq path/to/file

# Only print unique lines.
uniq -u path/to/file

# Only print repeating lines.
uniq -d path/to/file

# Count unique lines only.
uniq -cu path/to/file

# Count duplicated lines only.
uniq -cd path/to/file
```
