k-most frequent lines in a log file
I immediately started wondering about a good way to solve this. Something I recently read about UNIX tools came to mind. I conjectured that I could compose a solution using some arcane permutation of uniq, sort and head to achieve this. It turned out that I was right: this excellent answer has all the details of the UNIX approach of solving this problem.
Read full article from k-most frequent lines in a log file
No comments:
Post a Comment