Hacker News new | ask | show | jobs
by jakupovic 4173 days ago
uniq seems a bit easier to understand here:

history | awk '{print $2}' | sort | uniq -c | sort -rn