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

Why is it called a shebang?

803


What does grep v do?

768


What is pipe command in unix?

905


Enumerate some of the most commonly used network commands in unix?

854


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

773


What is the command to view process running?

812


how to sort the content of the file based on numeric values

1516


What does awk stand for?

807


Who wrote grep?

774


What is the use of egrep command in unix?

836


What is unix command line?

822


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

814


What is command statement?

794


hw will u use awk in replacing cahrs and files

2942


What is grep in bash?

776