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

Answer Posted / abhishek bhardwaj

If one wants to add content of file1 on top of file2 then

cat file2 >> file1

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does the command '$ls | wc –l > file1' do?

781


What does 'mkdir' command do in UNIX?

762


What does this command do,"$more readme.txt“?

775


Which command will print your home directory on screen?

664


What is the difference between awk and grep?

631






Explain ‘library functions’ with respect to unix commands?

700


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

712


Which unix command to make a new directory?

686


What is nr in awk command?

695


What is command statement?

654


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

697


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

1375


Name the various commands that are used for the user information in unix.

638


hw will u use awk in replacing cahrs and files

2813


What do chmod command do?

682