: !/bin/sh

#mfile="indata/Nov_2005/TELMAX21/wb2_m11_112005.in
mfile="indata/Nov_2005/VODAFONE/mobile_phones/out/10001_VODAFONE_mobile_phones_112005.out"

awk -F'|' '
{
	if ( $4 == "CDR" )
		totcost += $14
}
END {
	printf("totcost = %02f\n", totcost)
}' < "$mfile"