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

Answer Posted / abhishek bhardwaj

If one wants to add content of file1 on top of file2 then

cat file2 >> file1

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is grep in bash?

764


Explain ‘system calls’ with respect to unix commands?

772


Write a command that will display files in the current directory, in a colored, long format.

912


What is the command to find maximum memory taking process on the server?

876


What is the difference between grep and grep?

789


Explain command to display different lines that are found when compare two files?

874


what is the advaantage of each user having its own copy of the shell?

2281


What is “chmod” command?

745


What are file commands?

850


What is rmdir command?

782


Why is grep called grep?

981


What is unix command?

857


What is the use of awk command in unix?

759


What is the first character of the output in ls l command?

857


How does pipe () work?

777