genstats(1)

GENSTATS(1) General Commands Manual GENSTATS(1)

NAME

genstats - generate statistics on any textfile

SYNOPSIS

genstats [options]

options: [-ifdscvIhV]

DESCRIPTION

The program genstats generates statistics on any textfile. With commandline parameters which are very similar to those of the 'cut'-command, one can select what part of the lines in a textfile should be counted. Genstats then generates a table with the frequency of occurence of each string together with the interval.

OPTIONS

-i
File to read from. If omitted, genstats reads from stdin.
-f
Selects which field to look at. First field is '1'.
-d
When using the -f parameter, one can set the field delimiter with -d.
-e
Select the part of a string which matches to the given regular expression.
-E
Only evaluate the lines matching to the given regular expression.
-s
When used, only lines which do have the selected field are looked at.
-S
Simple output: only field and count.
-c
Selects a range of characters to look at:
N
N'th character, counted from 0
N-
from N'th character to end of line
N-M
from N'th to M'th (excluded) character
-M
from first to M'th (excluded) character
-v
Be a little more verbose when generating output (also adds a header to the output).
-I
Tread the strings case insensitive.
-h
Show a helptext and exit.
-V
Show version information and exit.

BUGS

None. This program is totally bug-free.

SEE ALSO

http://www.vanheusden.com/genstats/

NOTES

This page describes genstats as found in the genstats-0.0.4 package; other versions may differ slightly. Mail corrections and additions to folkert@vanheusden.com. Report bugs in the program to folkert@vanheusden.com.

2004-02 genstats