I need help identifying how to count the frequency of duplicate information in a file. For example:
0
0
14
14
10
10
10
Here I would like to have a UNIX command to tell me how many times I had a number repeated 2 times and tell me how many times I had a number repeated more than 2 times within a file.
For example, this command would use the above data and yield an output that tells me there were 2 unique numbers repeated 2 times in the file (0 and 14 each two times in the data set) and 1 unique number that was repeated more than 2 times in the file (10 occurred more than two times in the data set).