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
How do I use grep to search for a file?
What is the significance of the 'tee' command?
How does the system know where one command ends and another begins?
What is command statement?
Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?
What is nr in awk command?
Explain how to use grep command to list find the records of a file containing 10 different strings?
What do chmod command do?
Who invented grep?
Explain command to show the space allocation of files?
What are grep patterns?
How do I search for a file in unix command?
What does find command return in unix?
Describe the zip/unzip command using gzip.
What is ctrl d?