I want to find the presence of some text (which is contained in a file) within the text of another file and then replace it with the text in another file.
So I have fileA which contains some text to search for, fileB with the text I want to change it to, and fileC which is the target. So I effectively want to do something along the lines of;
cat fileC | sed -e 's/content of fileA/content of fileB/g'
Nothing I've tried so far has worked. Any ideas?
So I have fileA which contains some text to search for, fileB with the text I want to change it to, and fileC which is the target. So I effectively want to do something along the lines of;
cat fileC | sed -e 's/content of fileA/content of fileB/g'
Nothing I've tried so far has worked. Any ideas?