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