Count Occurences
Posted: Mon Aug 23, 2010 5:26 pm
I need to find the number of times a record is present in a file.
The input file has the following records,
A1
A1
B
C2
C2
Now the output file should be of this format
A1 2
B 1
C2 2
The input file has the following records,
A1
A1
B
C2
C2
Now the output file should be of this format
A1 2
B 1
C2 2