Re:“But didn't you write an embedded OS?”
by emilfihlman on Sunday May 13, 2018 @01:55PM
(#17060070)
Broken. uniq alone removes only adjacent duplicates. You need uniq -u to remove all duplicates.
[ Parent
| on HN ]
This is not a concern for already sorted lists.
> > sort foo | uniq
> Broken. uniq alone removes only adjacent duplicates. You need uniq -u to remove all duplicates.
As benchaney (https://news.ycombinator.com/item?id=17060154) points out, the duplicates will be adjacent after `sort`.