Input file 1:
A1BG
A1BG
A1BG
A1CF
A1CF
BCAS
BCAS
A2LD1
A2M
A2M
HAT
.
.
Input file 2:
A1BG All
A1CF TEMP
A2LD1 STOP
A2M KEEP
Desired output:
A1BG All
A1BG All
A1BG All
A1CF TEMP
A1CF TEMP
BCAS Undefined
BCAS Undefined
A2LD1 STOP
A2M KEEP
A2M KEEP
HAT Undefined
.
.
The desired output file is based on the comparison between the column 1 in both input file, Input file 1 and Input file 2. If exactly the same content of column 1 in both file, print out the content 2's info but based on the location and number of appearance in Input file 1.
For those different of column 1's content in both file, print out the "Undefined" after the column 1's text in Input file 1.
Thanks.