match elements from two files, how to write the intended format to a new file
- by user2489612
I am trying to update my text file by matching the first column to another updated file's first column, after match it, it will update the old file.
Here is my old file:
Name Chr Pos ind1 in2 in3 ind4
foot 1 5 aa bb cc
ford 3 9 bb cc 00
fake 3 13 dd ee ff
fool 1 5 ee ff gg
fork 1 3 ff gg ee
Here is the new file:
Name Chr Pos
foot 1 5
fool 2 5…