Answer the question
In order to leave comments, you need to log in
How to copy text from one file and paste in line 5 14th position?
There are 2 files.
From file1, you need to take the first line and insert it into line 5, 14th position of file2,
tried to push the output of the command into a variable, but it did not work
cat 1.txt | xargs sed -n '5' i `cat 1.txt` 2.txt
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question