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*

3
  • 1
    Did you forget to specify the sort delimiter -t,? Also you will need to tac the result to get the desired output. Commented Feb 24, 2016 at 18:38
  • @steeldriver Thank you for noticing that, I will edit the question! Unfortunately I still get the duplicates though. Commented Feb 24, 2016 at 19:09
  • 1
    you need to drop the -r from the sort Commented Feb 24, 2016 at 21:01