#!/bin/csh
if ($#argv != 1) then
	echo Usage: $0 \"dd/mm/yy hh:mm\"
	exit(1)
endif
echo Results for `printcompname`\; start time $1
echo "  Solved Minutes Attempted      Team"
foreach i (`printprobdir`/subs/*)
	score `basename $i` "$1" >>/tmp/res.$$
end
# wouldn't have to go thru these contortions if the r worked for
# indiviudal sort fields
foreach i (9 8 7 6 5 4 3 2 1 0)
	egrep "^       $i" /tmp/res.$$ | sort -n +1 -1
end
rm /tmp/res.$$
exit(0)
