How do you find duplicate lines in Unix?

How do you find duplicate lines in Unix?
Answer
The uniq command in UNIX is a command line utility for reporting or filtering repeated lines in a file. It can remove duplicates, show a count of occurrences, show only repeated lines, ignore certain characters and compare on specific fields.
 

Tìm kiếm

Back
Top