cat $finqual/cashfin | sed 's/^Grand Total/x x x Grand total/g' | cut -d" " -f4- |
awk '/STARTED ON UNIX/ { startHH = substr($0,1,2); startMI = substr($0,4,2) }
/FINISHED ON UNIX/ { endHH = substr($0,1,2); endMI = substr($0,4,2) }
/CITRPPB_THREAD.._rep01/ { threadCount++ }...