How to append a file to current file?




Answers were Sorted based on User's Feedback



How to append a file to current file?..

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

How to append a file to current file?..

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

How to append a file to current file?..

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



Post New Answer



More Vi Editor Interview Questions

HOW WE CAN MAKE THE DLIEVERY WHICH IS BLOCKED DUE TO CREDIT LIMIT.

0 Answers   Seamless,


what are the different delete commands used in vi editor?

2 Answers  


Which command is used to replace many characters?

4 Answers  


What is the format of vi command?

2 Answers  


How to replace String "a" with String "b" in whole file of the vi editor?

10 Answers   Niksun,






what is the command used to delete current line in vi editor?

2 Answers  


what is the command used to append to buffer?

0 Answers   IBM,


What is the command used to display line numbers in vi editor?

5 Answers  


what are the two different modes in vi editor?

7 Answers  


What does the /text command do?

4 Answers  


What is the difference between ZZ and :wq commands?

4 Answers  


what does the c$ command do from command mode?

5 Answers  






Categories
  • Vi Editor Interview Questions Vi Editor (21)
  • Visual Studio IDE Interview Questions Visual Studio IDE (55)
  • Editors AllOther Interview Questions Editors AllOther (1)