Is it possible to create a script to count repetitive numbers and report the sum of each group?
For example:
250
250
250
300
300
90
800
800
800
Should create this report
3: 250
2: 300
1: 90
3: 800
The numbers are line by line in the file. I'll edit out the string XXXX-MM-320 to just the number. But each number will fall on a new line.
For example:
250
250
250
300
300
90
800
800
800
Should create this report
3: 250
2: 300
1: 90
3: 800
The numbers are line by line in the file. I'll edit out the string XXXX-MM-320 to just the number. But each number will fall on a new line.