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 grep r?

591


Name the unix command to find how many days the server has been up.

599


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

615


What do chgrp command do?

589


What is the command to view process running?

572






What command is used to check the current users?

592


What difference between cmp and diff commands?

720


How do I open a port?

589


What is the function of grep command in unix?

586


What is the use of finger command?

595


What is the comma to display different lines that are found when compare two files?

593


What is unix command?

581


why metadb requires a seperate slice to create Solaris volume manager

2552


What is the use of awk command in unix?

579


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

668