# sort | uniq

`sort names.txt | uniq`

Sort the lines and drop the repeats.

## What each part does

- `sort` — command — sort lines
- `names.txt` — argument: a file, a folder, or text
- `|` — pipe: the previous command's output becomes the next one's input
- `uniq` — command — drop repeated neighboring lines

Source: https://zero2vibecode.com/explain/sort-uniq
