#!/bin/ksh
# The Takings ... of *.csv with hourly totals 
if [ ! -z "$1" ]; then
 awk -F',' '{ t=0; for (n=1; n<=NF; n++) t=t+$n; print t,$1; }' $@ | awk '{print NR ":\t" $0}' | sort -k2 -n -t$'\t'
else
 echo "Please use syntax like $0 [file-specification-of-purely-numerical-csv-files] to show totalling."
fi
exit