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 the command to find hidden files in the current directory?

572


How do I find previous commands in unix?

592


What are the unix commands?

545


Which command is used to create a directory?

560


What is sed awk grep?

600






What does the md command do?

564


What is the use of egrep command in unix?

622


What does 'mkdir' command do in UNIX?

652


What are the dos commands?

640


What is awk good for?

578


What do know about tee command and its usage?

582


hw will u use awk in replacing cahrs and files

2721


What is the use of awk command in unix?

571


Explain how to use grep command to list find the records of a file containing 10 different strings?

587


What is the use of finger command?

589