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
What does touch command do in unix?
Differentiate cmp command from diff command.
How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?
Differentiate cat command from more command.
What is in grep command?
What does 'mkdir' command do in UNIX?
What is the use of tee command?
What is difference between grep and find command in unix?
Give the command for finding the current date.
What are bash commands?
Enumerate some of the most commonly used network commands in unix?
What does sed command do in unix?
Explain command to show the space allocation of files?
What is grep in bash?
What do know about tee command?