How do I count duplicate lines in Linux?

How do I count duplicate lines in Linux?
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