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
Post a Comment