I have a data file such as
11111,22222,1
11112,22223,1
11113,22224,1
22222,33333,2
22223,33334,2
22224,33335,2
22225,33336,3
and so on.
The input format is x,y,id name
I would like the output to show
the number of xy pairs for each group of similar ids and
the output format would be as follows:
3,1
11111,22222,1
11112,22223,1
11113,22224,1
3,1
22222,33333,2
22223,33334,2
22224,33335,2
1,1
22225,33336,3
and so on.
I know I have to read entire file into an array but can't
seem to get the output in the prefered format.
Thanks for the help.
mrr
11111,22222,1
11112,22223,1
11113,22224,1
22222,33333,2
22223,33334,2
22224,33335,2
22225,33336,3
and so on.
The input format is x,y,id name
I would like the output to show
the number of xy pairs for each group of similar ids and
the output format would be as follows:
3,1
11111,22222,1
11112,22223,1
11113,22224,1
3,1
22222,33333,2
22223,33334,2
22224,33335,2
1,1
22225,33336,3
and so on.
I know I have to read entire file into an array but can't
seem to get the output in the prefered format.
Thanks for the help.
mrr