Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
etrain
on Dec 31, 2012
|
parent
|
context
|
favorite
| on:
Top Unix Command Line Utilities
sort | uniq -c | sort -n
is something I use all the time to get sorted frequency tables.
etrain
on Dec 31, 2012
[–]
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.
Consider applying for YC's Fall 2026 batch!
Applications
are open till July 27.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
is something I use all the time to get sorted frequency tables.