What sort | uniq does
sort names.txt | uniq: Sort the lines and drop the repeats.
The sort command page covers what it does in general, with an example.
sortnames.txt|uniq
sort— command — sort linesnames.txt— argument: a file, a folder, or text|— pipe: the previous command's output becomes the next one's inputuniq— command — drop repeated neighboring lines
What it does when you run it
$ sort names.txt | uniq
adam
bo
vera
Run it yourself
The same files. Nothing here can break, and nothing leaves your browser.
Where you use it
Explain other commands
Written by Mikhail Kuzmitskii