If the records are sorted [sort -o file file],
then I suggest uniq:
uniq -d file
will give you a single instance of every duplicated (and triplicated, quadruplicated, etc) record. If you need to know how many times a record was duplicated:
uniq -dc file
Some uniq's support the -D option, spew out the second and subsequent duplicated records.
----------
Derek