I have two files with the following format:
File1.txt
1
apple 1.056
ref 15
File2.txt
2
apple unknown
ref unknown1
How can I have the value for apple (1.056) from File1.txt be used in place of the what's written for File2.txt? I would like File2.txt to be updated to read:
2
apple 1.056
ref 15
I'm thinking a grep command may work but I'm unsure how to go about it. Any help will be much appreciated! Thanks