thunderkid
Technical User
I need to calculate the total for last two columns and print values in summary table. Sounds simple? I have tried modifying other scripts and searching the forum, but just don't get it. Below is sample data:
1 redx 55
1 redy 47
2 redx 23
2 redy 42
3 redx 50
3 redy 51
.
.
.
30 redx 30
30 redy 30
Desired:
1 102
2 65
3 101
.
.
.
30 60
thunderkid
1 redx 55
1 redy 47
2 redx 23
2 redy 42
3 redx 50
3 redy 51
.
.
.
30 redx 30
30 redy 30
Desired:
1 102
2 65
3 101
.
.
.
30 60
thunderkid