#!/bin/sh

cdrFileArr=`ls /tmp/needConverseCdrFiles/*`

echo "Start conversing."
for totalCdrFileName in $cdrFileArr ; do
	cdrFile=`echo $totalCdrFileName|awk -F"/" '{print $4}'`
	hour=`echo $totalCdrFileName|awk -F"_" '{print $5}'|awk -F"." '{print $1}'`
	echo $totalCdrFileName $cdrFile $hour
	./cdrCollector $totalCdrFileName $cdrFile $hour
	echo "."
done


