Subsituting contents of entire file to middle of another file using awk

Hi

I have a data file 'File2' consisting of 105670 lines. I want to copy and paste 17928 lines from 'File1' to 'File2' but I want to place it in between lines 21 and 17950 of 'File2'. How do I do it in awk?

For example-
File A has 5 lines
X
Y
1 2 3
4 5 6
7 8 9

and File B has
A
b
C
124234
214353245
234234

Using AWK, I want to paste the last 3 lines of File A in between lines containing 'C' and containing '124234' of File B. For my actual files, I know the line numbers between which I want to paste.
I have used the 'NR' option in awk using line numbers for data processing. But I am confused about this code?
:confused:

Bumping up posts or double posting is not permitted in these forums.

Please read the rules, which you agreed to when you registered, if you have not already done so.

You may receive an infraction for this. If so, don't worry, just try to follow the rules more carefully. The infraction will expire in the near future

Thank You.

The UNIX and Linux Forums.

Please continue here.