VI COPY FILE TO FILE
Here is how to copy the required number
of lines from one file to another in
VI editor. First use the following
key combinations in the source file.
Press Shift "(Shift double quotes)
Press the number of lines you want to copy
press y followed by another y
Now press " : " (COLON) to get the vi prompt.
Hit e "Destination file name"
Once you enter the Destination file
go to the line where you want the lines
copied to be inserted.
Press SHIFT "(Double quotes).
The lines get copied.