I want to calculate the average line by line of some files with several lines on them, the files are identical, just want to average the 3rd columns of those files.:wall:
Example file:
File 1
001 0.046 0.667267
001 0.047 0.672028
001 0.048 0.656025
001 0.049 0.660557
002 0.000 0.669553
002 0.001 0.594648
002 0.002 0.586738
002 0.003 0.593728
002 0.004 0.593658
File 2
001 0.046 0.654565
001 0.047 0.665057
001 0.048 0.660074
001 0.049 0.670424
002 0.000 0.669462
002 0.001 0.594793
002 0.002 0.589329
002 0.003 0.593949
002 0.004 0.592371
Desired Output
001 0.046 Average of the nth line from the two files
001 0.047 Average of the nth line from the two files
001 0.048 Average of the nth line from the two files
001 0.049 Average of the nth line from the two files
002 0.000 Average of the nth line from the two files
002 0.001 Average of the nth line from the two files
002 0.002 Average of the nth line from the two files
002 0.003 Average of the nth line from the two files
002 0.004 Average of the nth line from the two files