Dear Friends,
Please help me on this
I have file A.txt containing text lines as below
grectec; 30 ,50, 60, base_123 ; top09
grectec; 30 ,55, 60, base_123 ; top09
grectec; 10 ,53, 60, base_123 ; top09
grectec; 50 ,57, 60, base_123 ; top09
...
...
another file B.txt containing test lines as below
10 ken
30 jack
50 sack
60 mug
I need a script that check if the line containing text 30 add ken at the end of the line, similarly if the line containing 10 add ken at the end of the line.
output should be as: C.txt
grectec; 30 ,50, 60, base_123 ; top09 jack
grectec; 30 ,55, 60, base_123 ; top09 jack
grectec; 10 ,53, 60, base_123 ; top09 ken
grectec; 50 ,57, 60, base_123 ; top09 sack
I think its would be done using join command but dont know how: