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

Answer Posted / boss

cat file1 file2 > tmp && mv tmp file2

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

hw will u use awk in replacing cahrs and files

2726


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

659


What is the use of egrep command in unix?

623


How do I run a bash script?

577


What is $0 bash?

643






What is time_t?

582


What is the behavioural difference between cmp and diff commands?

670


Explain ‘system calls’ with respect to unix commands?

598


Why is awk called awk?

574


Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?

794


What does find command return in unix?

592


What is the comma to show the space allocation of files?

558


Why is shebang used?

593


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

621


Is it inbetween or in between?

577