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

Answer Posted / dick

concatenate file1 and file2, in the below command file1 content will be insert in front of that in file2, and then combined content will be redirected to file3

cat file1 file2 > file3

Is This Answer Correct ?    8 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is unix command?

689


Does cp command overwrite files?

703


Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?

1065


What is the difference between awk and grep?

631


Why is it called grep?

644






Who command in unix?

680


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

829


What is the difference between cat command and more command?

676


What difference between cmp and diff commands?

819


why metadb requires a seperate slice to create Solaris volume manager

2654


Explain command to view process running?

699


What is the use of sed command in unix?

690


How do I use nslookup?

658


Which unix command lists files/folders in alphabetical order?

692


What does 'mkdir' command do in UNIX?

762