Hello.
I have a general question on combining numeric values between multiple
lines within a flat-file.
For example:
$ cat test.file
123 345 567 789
987 654 432 123
543 876 098 123
324 657 980 501
987 654 432 123
543 876 098 123
So what I want to do with the data above is combine (add) the numeric
values of position 1-4 with the number directly below in the same
position. I want to do this with every other line. So I want to combine
line1 with line2 and line3 with line4 and line5 with line6, etc.
To clarify more, I want the end result to look like below:
line1_position1 + line2_position1, line1_position2 + line2_position2 \
line1_position3 + line2_position3, line1_position4 + line2_position4
line3_position1 + line4_position1, line3_position2 + line4_position2 \
line3_position3 + line4_position3, line3_position4 + line4_position4
...
...
Thanks for any help!
MA