Insert text file at a certain line.

I need to insert a file called temp_impact (which has about 15 lines in it) to a file called 11.23cfg starting at line 33. I searched the forums and found the

sed '34i\
test' 11.23cfg > newfile

That will enter word test at the appropriate line, but i need the entire file dumped there. Any help would be appreciated. This is on an HP system so no bash shell is avalible, just sh. Is there anyway to do this with sed or is there a better way to insert it all together.

Sean

open the file you want to move things into with vi.

Move the cursor down to line 15
Press colon r filename
eg.:

:r filename.txt

Press return.

The lines from filename.txt will be read and inserted in between the old lines 15 & 16
of the file you first opened with vi

I am sorry I forgot to add this is suppose to be automated in a script, is there a way to open vi and have it insert with that command at line 35 and close with no user intervention?

I wrote a script which does just that:
http://comp.eonworks.com/scripts/insertext

Try something like this:

sed '33r temp_impact' <11.23cfg >11.23cfg.tmp
mv 11.23cfg.tmp 11.23cfg

Jean-Pierre.