What sort | uniq does
Sort the lines and drop the repeats.
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