I have two files of the same length:
0.99952 0.01 0.98927 0.02 0.98242 0.03
and
-0.758 0.01 -0.745 0.02 -0.742 0.03
I would like to summarize the first column numbers and print them in a new file with the same elements as in the second column. The output should be:
0.24152 0.01 0,24427 0.02 0,24042 0.03
I tried using
paste file1 file2 | awk '{print ($1 + $2), $4}' > sum
but conclusion:
1.00952 0.01 1.00927 0.02 1.01242 0.03
source share