I've two files. One is called file1.txt and the other is person1.txt. Both of them contain some lines of text as in the following example:
file1.txtword1 word2 word3 word4 word5 word6 word7 word8 word9person1.txtgivi sixarulidze
What I want to do is to replace first seven lines of code in file1.txt with the content of person1.txt.
- Desired output:
givi sixarulidze word8 word9
How can I achieve that?
person1.txthas less then seven lines? What should the preferred solution do ifperson1.txtis longer?