: !/bin/sh #13747|0404879300|Vodafone|NA|Sep 2002|01/10/2002|092516|Retrieve Voicemail|Callback Service Retrieval, Follow MeFax Retrieval|Retrieve Voicemail|Peak|5|0.13| cat wb2_m10.in | \ awk -F'|' -v "GSMmobile=$1" '{ mobile = $2 callcost = $13 if ( mobile != GSMmobile ) continue print $0 ctot += callcost } END { print "" print "ctot = " ctot }'