Sorry for a noob question but, well, I am a noob, so...
Given two files, say file1 with content, say, text1 and file2 with content text2, I want to create a new file file3 with content text1newtextinbetweentext2. I would expect some command like
cat file1 (dontknowwhat "newtextinbetween") file2 > file3
Is there some dontknowwhat that would do what I want? If not, what is the optimal way to do it?