genstats

Introduction

genstats is a general statistics generator.
It takes any textfile and commandline parameters very similar to the 'cut'-command. That way, one can generate statistics on almost any textfile.

Examples

Generate a list of hostnames in /var/log/messages with the frequency of their occurence.
cat /var/log/messages | genstats -f 4 -v

Download

Download link:genstats-0.0.9.tgz
Previous version:genstats-0.0.8.tgz
Slackware packages

Changes

0.0.9 made 64-bit safe
0.0.8 removed needless dependency on ncurses, in some cases reading from STDIN would fail
0.0.7 optimized for speed (aprox. 25% faster)
0.0.6 fixed a segfault (when the last line did not end with \n)
0.0.5 speed optimalisation: almost 10x faster
0.0.4 one can now use regular expressions to select the strings to count
0.0.3 added interval, added manpage
0.0.2 Initial release

Real-time?

I wrote
andatool which does all of this in real-time.

Screenshot

screenshot

 
 
Menu with my UNIX/Linux softwareFeeling generous? e-mail me at: folkert@vanheusden.com (CAcert assurer)
May 8, 2007 Please support Seti@Home