Hello
I have a file which contains following data:
abc,1234,adf
abc,214,fdff
abc,455,adff
I need to replace KEYWORD from other with following data :
1234,adf
214,fdff
455,adff
Hello
I have a file which contains following data:
abc,1234,adf
abc,214,fdff
abc,455,adff
I need to replace KEYWORD from other with following data :
1234,adf
214,fdff
455,adff
What "keyword from other" ? What have you tried?
What is your expected result? I see two input files (possibly)? Please clarify.
KEYWORD is word which exists in another file.
Actually I have to replace this word with
1234,adf
214,fdff
455,adff
so far I have tried
sed -e '/KEYWORD/r file1' file2
here file1 is file which contains
abc,1234,adf
abc,214,fdff
abc,455,adff
and file2 is file where KEYWORD exists.
actually from this 'sed' command it copied all the data from file1 to file2 after KEYWORD line.
But I need to replace KEYWORD with some portion of file .