Hi,
I need to find all rows in 1st col of one file in another file (first occurrence) and replace the 1st col of first file with the grep result (the entire line). For example search AA from file 1 in file 2 and replace in file 1 by entire line found.
File1
AA BB CC DD
BB AA CC DD
File2
bbbbbbAADDDDCDCDKLK
bbbbbbAADDBDCDCDKLK
bbbbbbBBDCDCDKLK
output
bbbbbbAADDDDCDCDKLK BB CC DD
bbbbbbBBDCDCDKLK AA CC DD