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

What is grep short for?

747


Which command is used to copy files?

815


What is the use of finger command?

830


What are some command words?

815


Which command will print your home directory on screen?

788


How to find $ai_serual resolved path by using unix

1265


What is “chmod” command?

754


What is grep and how do you use it?

785


How do I search for a file in unix command?

743


How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?

972


How do I use nslookup?

764


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

912


Differentiate cat command from more command.

779


What does the command '$ls | wc –l > file1' do?

903


Is command prompt unix?

790