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

Answer Posted / preet mala

If we want to add content of file1 at the beginning of file2
then use the following command:-


cat file2 file1 >> file3 | mv file3 file2;

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which command is used to kill the last background job?

886


What is the use of awk command in unix?

652


What is grep short for?

646


What is unix command line?

704


Explain the steps that a shell follows while processing a command.

766






How do I search for text in vi?

666


Is ‘du’ a command? If so, what is its use?

717


What are some command words?

669


What is command statement?

654


How to find $ai_serual resolved path by using unix

1140


Write a command to display a file’s contents in various formats?

712


What is the use of the command 'ls -x chapter[1-5]' ?

767


Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.

711


What do know about tee command and its usage?

703


Is it inbetween or in between?

658