Hacker News new | ask | show | jobs
by G_o_D 237 days ago
why no mention of awk ? awk '!a[$0]++'
1 comments

I've added awk into the benchmarks also!
Also perl, should be faster than awk IIRC:

perl -ne 'print if ! $a{$_}++'