How to find dupicated records?

Hi gurus,

I have a file which contains duplicated records. the records is comma delimited with more than 30 columns. I need to find the records which have exact value for each column.

thanks in advance.

man uniq :

man uniq

Try,

sort ken6503.file | uniq -d

or

perl -ne '$seen{$_}++ and print' ken6503.file