Skip to main content
2 of 4
added 73 characters in body
givi
  • 47
  • 3

replace first 7 lines of file with the other file

I've two files the one is called file1.txt and the other is person1.txt both of them contains some lines of text

file1.txt

word2
word3
word4
word5
word6
word7
word8
word9

person1.txt

givi sixarulidze

what I want to do is to replace first seven lines of code in file1.txt with person1.txt

target output:

file1.txt

givi sixarulidze
word8
word9

any solutions will be appericated

givi
  • 47
  • 3