Help for this page
file1..... ... test1 ghi test3 jkl test3 mno
test1 abc ghi test3 ghi jkl test3 ghi mno
perl -ane '($a,$b)=@F;!$h{$a}?$h{$a}=$b:print"$a $h{$a} $b\n"' file1 f +ile2