Ravi Sir's Cards › AWS
uniq misses duplicates?
This interview card answers: uniq misses duplicates? It joins only neighbours. Sort first. Or sort -u.
Read card text
What this card says
What it is
It joins only neighbours.
Why it matters
Sort first.
sort f | uniq -c
How / example
Or sort -u.
sort -u f