Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • The title and the body ask two different questions. sort | uniq is the same as sort -u, and sort | uniq -u is explicitly asking for a totally different behaviour; which one do you care about? Commented Sep 24, 2017 at 21:29
  • I edited to make the title and body consistent; revert if that isn't what you meant (otherwise, it's a duplicate of the question linked in the answer). Commented Sep 24, 2017 at 21:38