Capgemini Interview Question

How to find out duplicate rows in unix file?