#! /bin/sh . config.sh echo 'Content-type: text/html Tron Hall of Fame

TRON HALL OF FAME


' $PSQL -q -t -c ' select won-lost as points,username,won,tied,lost, float8(won)/float8(won+tied+lost) as rate from allhumans order by points desc, rate desc;' tron | awk -F\| ' BEGIN { printf(""); printf("\n","Position", "Name","Won","Tied","Lost","Rate","Points"); } { count = count+1; if ((count % 100) == 0) { printf("
%3s%-30s%3s%3s%3s%5s%5s
"); printf("\n","Position", "Name","Won","Tied","Lost","Rate","Points"); } printf(""); printf("
%3s%-30s%3s%3s%3s%5s%5s
%3d%-30s%3d%3d", count,$2,$3,$4); printf("%3d%5.2f%5d\n",$5, $6,$1); } ' echo '
'