I have a text file for column a and b which looks like this
a b
18772 2
18324 4
18009 2
18772 3
18772 3
18772 2
18009 2
18772 3
18009 3
17654 2
18772 3
I need the output
a b c
18772 2 2
18772 3 4
18009 2 2
18009 3 1
18324 4 1
17654 2 1
where c means
no of occurences for value a against value b.
Regards
MP
a b
18772 2
18324 4
18009 2
18772 3
18772 3
18772 2
18009 2
18772 3
18009 3
17654 2
18772 3
I need the output
a b c
18772 2 2
18772 3 4
18009 2 2
18009 3 1
18324 4 1
17654 2 1
where c means
no of occurences for value a against value b.
Regards
MP