olympiakos
Technical User
Hello all,
I want to ask you if and how I can perform the following task using awk and arrays (even though they are single-dimensional).
I have 2 files of the format:
File1:
ET-123 WO
ET-135 WO
ET-158 SE
FILE2:
ET-123 WO 620
The example I give is typical but the volume of the files is much bigger.
My question is, how can I put the value 620 to file1 for every value of $1 that matches on both files?
I would appreciate any feedback.
Thanks
I want to ask you if and how I can perform the following task using awk and arrays (even though they are single-dimensional).
I have 2 files of the format:
File1:
ET-123 WO
ET-135 WO
ET-158 SE
FILE2:
ET-123 WO 620
The example I give is typical but the volume of the files is much bigger.
My question is, how can I put the value 620 to file1 for every value of $1 that matches on both files?
I would appreciate any feedback.
Thanks