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

Answer Posted / pritam sahu

cat fil2 file1>>file3 then rename the file3 as file2 by mv
file3 file2.

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is grep and how do you use it?

660


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

764


How to display no of records in oracle using unix command?

673


What are file commands?

746


Describe the usage and functionality of the command rm –r * in unix?

921






What is the difference between cat and more command?

759


Which command should you use to find the remaining disk space in unix server?

829


What are the commands in UNIX to list the files in a Directory?

693


What do know about tee command and its usage?

703


What is the difference between cat command and more command?

676


How does the system know where one command ends and another begins?

1691


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

2147


Explain ‘library functions’ with respect to unix commands?

700


What is difference between grep and find command in unix?

667


What is the significance of the 'tee' command?

672