I have a question as below and i need to write a shell or perl script for this query:My Input file looks like below
RNo Marks
12 50
15 70
18 80
12 40
13 55
18 88
13 75
12 78
15 88
I want to calculate the average based on RNo.
I need the Output as:
RNo Average
12 .....
13 .....
15 .....
18 ......
Please answer this query and send me the script.