parse a log file quickly
http://snippet.gabory.fr/snippet/9/
This is the python counterpart of "cat <your log file> | cut -d ":" -f 1 | sort | uniq -c | sort -n" but it run must faster, thanks to the itertools.groupby
Written by Yohann Gabory
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Python
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#