How to append a file to current file?
Answers were Sorted based on User's Feedback
Answer / invisble
Alternate approach:
If you are working in file2 and want to append file1, than
place the cursor where you want to append the new file and
use the following command
:r file1
Is This Answer Correct ? | 9 Yes | 1 No |
Answer / b2p
to append file1 to file2. first open file1 in vi editor
using vi file1 command. then to append file1 to file 2 just
use the following command.
:w>>file2 so file 1 will be appended to file 2
Is This Answer Correct ? | 5 Yes | 4 No |
Answer / ali ahsan
:r filename(if file we are appending is in same directory)
otherwise
:r path/filename
Is This Answer Correct ? | 0 Yes | 0 No |
what are the two different modes in vi editor?
what is the command used to append to buffer?
How to create a .exrc file in vi editor?
How to replace String "a" with String "b" in whole file of the vi editor?
What is the difference between ZZ and :wq commands?
How to return to shell without leaving vi editor?
what is the command used to append text after current line?
what are the different commands used to quit from the vi editor?
Which command is used to replace many characters?
what is the command used to set margin in vi editor?
How to append a file to current file?
What does the /text command do?