> >>So, read `man awk', `man sed' etc, I found the answer. It was very easy , as you told me in your first post . It is as : #uniq -c file name Sorry that I did not noticed it. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20100512/cd4206d3/attachment-0005.html>