Nguyễn Tân
New member
How do you count unique lines in Unix?
Answer
How to show a count of the number of times a line occurred. To output the number of occurrences of a line use
the -c option
in conjunction with uniq . This prepends a number value to the output of each line.
Answer
How to show a count of the number of times a line occurred. To output the number of occurrences of a line use
the -c option
in conjunction with uniq . This prepends a number value to the output of each line.