I have two text files, whose content is as follows;
data_1:473428800.0 0 0.000004 1.00 WETZTROPMCIL #4 columns, several lines
473429100.0 0 0.000002 1.00 WETZTROPMCIL
data_2:473428800.0 0 2.100000 1.00 DRYTROPMCIL #4 columns, several lines
473429100.0 0 2.200000 1.00 DRYTROPMCIL
I need to add each line of the 3rd column of one file to the respective line of the 3rd column in the other file, and substitute these sums to the 3rd column of data_1, in a new file, as below;
merged_data= data_1:473428800.0 0 2.1000004 1.00 WETZTROPMCIL #4 columns, several lines
473429100.0 0 2.2000002 1.00 WETZTROPMCIL