Tag Archives: FRANC

Two files comparision with single field

By shivaji_veer

Hi ,

Im new to uxin environment and shell scripting….

please help me with the code for the following scenario…..

file 1 contains the following fields

abc 200 rupee IND
cdf 400 dollar USA
efg 300 euro GER
hij 600 pound ENG

file 2
SBI abc 321 dollar CANAD
kvr mnd 345 pound FRANC
axs efg 879 euro Russia

if field 1 of file1 matches field 2 of file2 then complete row of filed2 in file should be displayed.

output file:

SBI abc 321 dollar CANAD
axs efg 879 euro Russia

Can someone help on this ….

Source: FULL ARTICLE at The UNIX and Linux Forums