Return sorted unique lines.
Section: sort and uniq
Sort and deduplicate
bash
bash
sort -u names.txtExplanation
Equivalent in effect to `sort | uniq` for many workflows.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing sort and uniq