
Here is an awk script I wrote for the hell of it because I am home
sick today.  It computes the standard boring univariate statistics.
I have enclosed two versions.  "stats1.awk" requires the new new
version of awk, which has user-definable functions.  (MKS awk allows
this too!)  In stats1.awk, I define a function called pow, which
in and of itself, is useful.  "stats2.awk" doesn't require the new
awk.  It may actually be faster too since it doesn't do an interpreted
function call.  But it's not as cool.

Tom Reingold
PAPERNET:                      |INTERNET:       tr@bellcore.bellcore.com
Bell Communications Research   |UUCP-NET:       bellcore!tr
445 South St room 2L350        |SOUNDNET:       (201) 829-4622 [work],
Morristown, NJ 07960-1910      |                (201) 287-2345 [home]
