Skip to content

Comment on Top Unix Command Line Utilitiesparent

Comments

sort | uniq -c | sort -n

is something I use all the time to get sorted frequency tables.

And, by the way, the two commands are something that could be done in O(n), rather than O(n*log(n)) - but this little procedure is so damn easy to write, that on relatively thin inputs that are less than 20m lines long, I usually just do this.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.