2 ms·
Bear in mind "uniq" only removes adjacent duplicates. On my machine: $ cut -c 1-3 /usr/share/dict/words | tr 'A-Z' 'a-z' | uniq | wc -l 5089 $ cut -c 1-3 /u
by dTal 12y ago
Bear in mind "uniq" only removes adjacent duplicates. On my machine:
$ cut -c 1-3 /usr/share/dict/words | tr 'A-Z' 'a-z' | uniq | wc -l
5089
$ cut -c 1-3 /usr/share/dict/words | tr 'A-Z' 'a-z' | sort | uniq | wc -l
3434
p.s. How do you do newlines on HN?