I have this problem:
I have a file with two columns:
c_223 net1:223
c_456:n nnneint_i:456
The second file has 4 columns, like:
Cc_3 c_223 c_456:n 6.3348274
Cc_4 c_56:n c_223 7.32423
etc.
I need to read from file 1 first token,
search in file 2 all occurences of that token and
replace each of them with token 2 form file 1.
the result would be:
Cc_3 net1:223 nnneint_i:456 6.3348274
Cc_4 c_56:n net1:223 7.32423
The problem is that for each line in file 1 I must parse the whole file 1 (I guess)
The files are VERY large:
file1 126680K - 1799405 lines
file2 239678K - 5324567 lines
Please HELP! It is urgent!
Thank you!
Elena
I have a file with two columns:
c_223 net1:223
c_456:n nnneint_i:456
The second file has 4 columns, like:
Cc_3 c_223 c_456:n 6.3348274
Cc_4 c_56:n c_223 7.32423
etc.
I need to read from file 1 first token,
search in file 2 all occurences of that token and
replace each of them with token 2 form file 1.
the result would be:
Cc_3 net1:223 nnneint_i:456 6.3348274
Cc_4 c_56:n net1:223 7.32423
The problem is that for each line in file 1 I must parse the whole file 1 (I guess)
The files are VERY large:
file1 126680K - 1799405 lines
file2 239678K - 5324567 lines
Please HELP! It is urgent!
Thank you!
Elena