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 are the general commands in using unix os for a beginner?

583


Name the general commands in using unix os for a beginner?

628


What is ctrl d?

598


What is awk good for?

590


How does shebang work?

594






What command is used to check the current users?

598


Write a command to display a file’s contents in various formats?

631


What is the use of the command 'ls -x chapter[1-5]' ?

665


How do I use grep to find a file?

583


What is in grep command?

652


What do chown command do?

536


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

2040


What are grep patterns?

581


What are file commands?

656


What does the metacharacter mean?

614