Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Ask HN: What's your speciality, and what's your "FizzBuzz" equivalent?. Parent comment
Print number of words:
wc -w <filename>
cat <filename> \ | gawk '{for (i=1;i<=NF;i++) print $i}' \ | sort \ | uniq -c \ | sort -rn \ | less
There are no comments on this comment yet.
Print number of words:
Print words with counts in decreasing order: There are optimizations to be made, but that would be my go to solution in the first instance.