Link to home
Start Free TrialLog in
Avatar of sumanth_ora
sumanth_ora

asked on

How to find out a duplicates in a file on the Unix box

Hi ,

     i hava a file on the unix box . i need to find out any duplicates in the file and what is the count of each record set which has been duplicated in the file.

Thanks in advance for the help
Avatar of ozo
ozo
Flag of United States of America image

assuming records are lines
sort file | uniq -cd
ASKER CERTIFIED SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial