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

How do you grep recursively?

559


What is the general format of unix command syntax?

698


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

678


why metadb requires a seperate slice to create Solaris volume manager

2558


Why is it called grep?

565






What is updatedb?

590


Why is awk called awk?

581


What is the difference between awk and grep?

561


How can we use grep command in unix?

621


Differentiate cat command from more command.

582


What do chmod, chown, chgrp commands do?

641


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

637


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

684


What is the difference between cat and more command?

627


What is the use of egrep command in unix?

630