linux - merge contents of two files if string matches in each line -


i have 2 files file1, file2 content below, each file has 500 lines.


cat file1

user1  job role : user2 job role : 

cat file2

user1     efg@xyz.com user2     hij@xyz.com user9   user16    abc@xyz.com 

i want script append mail address of corresponding user file2 below line "job role" every user in file 1. number of names , contacts both files different.

no attempt no help. need @ least 30 characters, hence second sentence.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -