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 clear my terminal history?
What is grep in bash?
How do you grep a case insensitive?
how to sort the content of the file based on numeric values
How do I delete files from command prompt?
What do know about tee command?
Who invented grep?
What does touch command do in unix?
Which unix command lists files/folders in alphabetical order?
Which command is used to delete all files in the current directory and all its sub-directories?
What is the use of find command in unix?
Who command in unix operating system?
What does 'mkdir' command do in UNIX?
What is “chmod” command?
Differentiate cat command from more command.