I need to append a file in a specific location of another file. I got the line number so, my file is:
file1.txt
:
I
am
Cookie
While the second one is
file2.txt
:
a
black
dog
named
So, after the solution, file1.txt
should be like
I
am
a
black
dog
named
Cookie
The solution should be compatible with the presence of characters like "
and /
in both files.
Any tool is ok as long as it's native (I mean, no new software installation).