Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Bourne shell idioms.
Count the number of times a given line occurs with $ sort | uniq -c | sort -n
$ awk '{x[$0]++}END{for(y in x) print y, x[y]}' (helpful on billion-line files, so that you dont have to sort)
There are no comments on this comment yet.
Count the number of times a given line occurs with $ sort | uniq -c | sort -n
$ awk '{x[$0]++}END{for(y in x) print y, x[y]}' (helpful on billion-line files, so that you dont have to sort)