What would be the sed command for mac shell scripting that would replace all iterations of string \"fox\" with the entire string content of myFile.txt.
myFile.txt wo
Ultimately what I went with which is a lot simpler than a lot of solutions I found online:
str=xxxx sed -e "/$str/r FileB" -e "/$str/d" FileA
Supports templating like so:
str=xxxx sed -e "/$str/r $fileToInsert" -e "/$str/d" $fileToModify