Input File:
----+----1----+----2----+----3----+----4
1A1ZJ57763A 101
49D70FAIFE0 A 201
1F2ZJ57B606 101
XKFX3HP0IBB 6 201
1O2ZJ57B496 101
BBJL9KG7K34 6 201
1X2ZJ57B486 101
BBJL9KG7K34 6 201
1B1ZJ57763A 101
49D70FAIFE0 A 201
1C1TJ57763A 101
S9D70FAIFE0 A 201
1D2ZJ57V606 101
TKFX3HP0IBB 6 201
1A1ZJ57763A 101
49D70FAIFE0 A 201
1F2ZJ57B606 101
XKFX3HP0IBB 6 201
1O2ZJ57B496 101
BBJL9KG7K34 6 201
1X2ZJ57B486 101
BBJL9KG7K34 6 201
1B1ZJ57763A 101
49D70FAIFE0 A 201
1C1TJ57763A 101
S9D70FAIFE0 A 201
1D2ZJ57V606 101
TKFX3HP0IBB 6 201
Output: I want to count the total number of records for each variety of value appearing at 14th position and write like below:
STATS:
TOTAL NUMBER OF RECS FOR TYPE '0': 00002
TOTAL NUMBER OF RECS FOR TYPE '3': 00003
TOTAL NUMBER OF RECS FOR TYPE '8': 00001
TOTAL NUMBER OF RECS FOR TYPE '9': 00001
TOTAL NUMBER OF RECS FOR TYPE '0': 00002
TOTAL NUMBER OF RECS FOR TYPE '3': 00003
TOTAL NUMBER OF RECS FOR TYPE '8': 00001
TOTAL NUMBER OF RECS FOR TYPE '9': 00001
Note: The values appearing at 14th position range from '0' to '9'.
Please help.
Thanks.