# put it at the end
cat tomove.html >> toreceive # note >>, not >
There are a variety of ways to put it at a particular spot in the file. You will need a temporary file to hold either the original torecieve or the new one. Lets assume you will build into the temporary and then rename it.
# put it after line 25
head -25 torecieve> tempreceive
cat tomove.html >> tempreceive
tail +26 toreceive >> tempreceive # note the plus sign
mv toreceive old-toreceive
mv tempreceive toreceive Or you could use sed ... with the r (read file here) command. Similar pattern: Work from existing file into a temp file, then rename.
Either the script or with sed, you could instead first rename the original file to a tempame, then build the new file in place. If this fails, though, it is harder to get back to the initial state.