I have two text files. Using sed or grep, how can i find matching string and then replace the string from text2.txt?It should search anything under name= . If found, replace it what is under path= . output.txt has desired output data.test1.txtdomain merge_requestsabc frameworks merge_requestsdvc frame-test merge_requeststest2.txt<project path=test/domain name=device/common /><project path=test1/frameworks  name=test/frameworks /><name=test/frame-test project path=test3/frame-test />output.txttest/domain merge_requeststest1/frameworks merge_requeststest/frame-test merge_requests
search string using grep or sed from two files
sed;grep