Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Learn to use Awk with hundreds of examples. Parent comment
$ cat duplicates.txt abc 7 4 food toy **** abc 7 4 test toy 123 good toy **** $ awk '!seen[$2]++' duplicates.txt abc 7 4 food toy **** $ awk '!seen[$2]++{cnt++} END{print +cnt}' duplicates.txt 2
I'll add a note, thanks :)