I was trying to count who said a certain word how often in an IRC channel, so I came up with this:
It takes roughly 1.8sec for 150.000 lines. Will add a perl and awk version if I find time.
grep -i foobar .irssi/irclogs/channel.log | cut -d "<" -f 2 | cut -d ">" -f 1 | sed 's/[@ %*!]//' | sort | uniq -c | sort
It takes roughly 1.8sec for 150.000 lines. Will add a perl and awk version if I find time.
Trackbacks
Trackback specific URI for this entry
No Trackbacks
Layout by Ricky Wilson | Serendipity Template by Carl Galloway | Login
About
Life's a bitch, life's a whore. Nothing less, nothing more.
Read More
Der Autor...
... studierte bisher Informatik. Und zwar an der LMU München. Nebenher arbeitete er als PHP-Entwickler und Admin. Seit kurzem sogar Vollzeit und in Farbe
Quicksearch
last.fm
Song: World On Fire
Artist: Sarah McLachlan
1. February 2012, 13:30
Song: Grafton Street
Artist: Dido
1. February 2012, 13:24
Song: Warrior's Dance (Benga Remix)
Artist: The Prodigy
16. October 2011, 17:18
17. May 2012, 22:37


