Does this help? > The first number is the number of occurrences of each CallId > Thank you for your help. It is very important for me to how the number of occurances of each CallId# . But can you please let me know why the number obtained from your code does not match with manual counting on say one of the CallId#? Can you please correct me? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20100511/4981f9ae/attachment-0005.html>