I want to read in an input file of numbers.
I want the output to give me each unique number found and the count for each number found.
Currently, my script prints all the numbers with the count ascending.
sample output:
1 - 1
1 - 2
1 - 3
2 - 1
2 - 2
2 - 3
2 - 4
3 - 1
3 - 2
What I want is:
1 - 3
2 - 4
3 - 2
I want the output to give me each unique number found and the count for each number found.
Currently, my script prints all the numbers with the count ascending.
sample output:
1 - 1
1 - 2
1 - 3
2 - 1
2 - 2
2 - 3
2 - 4
3 - 1
3 - 2
What I want is:
1 - 3
2 - 4
3 - 2