bash script for generating billing statitics from asterisk cdr file