Say I have a list such as this:
8
382.34.6
sally
sally
8
923
183.3.3
183.3.3
183.3.3
8
And I want to tally up the number of times each unique value repeats and get output like this:
8 3
382.34.6 1
sally 2
923 1
183.3.3 3
What command would I need to run to do this? If it makes a difference, the list is coming from a grep
search.