I have several files that all contain a string. This string needs to be replaced by the whole content of another file (that can possibly be multi-line). How can I do this?
What I need is something like sed -i 's/string/filename/' *
where filename
is an actual file and not the string "filename".
Additional info: The file can contain special characters such as /
or \
or |
or [
or ]
.