How to add content of one file into another file at the beginning

Answer Posted / green

(To insert file2 content to file1; then the command is)
vi file1
(in command mode)
:0 r! cat file2 (press enter)

( file2 content is inserted to file1 )

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does awk stand for?

789


How do I search a whole word in vim?

874


How to find $ai_serual resolved path by using unix

1259


Enlist some filename manipulation commands in unix.

747


What is the pipe command?

810


What is the significance of the 'tee' command?

820


What is the nmap command?

801


What is the use of the tee command?

806


Which unix command lists files/folders in alphabetical order?

1098


Is grep faster than awk?

733


What is grep r?

783


Why is awk called awk?

766


Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?

889


Who invented grep?

865


What is unix command line?

807