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

Answers were Sorted based on User's Feedback



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

Answer / vikas gupta

cat sourcefile>>destinationfile|head -1

Is This Answer Correct ?    0 Yes 4 No

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

Answer / durgesh srivastava

if file1 conation go on file2 .............
cat file1 >> file2

Is This Answer Correct ?    6 Yes 13 No

Post New Answer

More Unix Commands Interview Questions

Hi All, Can you please let me know how to grep for a particular pattern in unix. I want to print the dates from the file exp.txt. the date pattern is DD:MM:YYYY, I just want to print all the dates from the file exp.txt.

8 Answers   Concentrix, IBM, Symantec, TCS,


What does #!/ Bin sh do?

0 Answers  


What is grep and sed command?

1 Answers  


What do chown command do?

0 Answers  


What is the difference between pipe and xargs?

2 Answers   Amazon, CTS,






how will you convert a general file to a hidden file?

4 Answers  


How do you grep recursively?

0 Answers  


Explain the read, write, and execute permissions on a UNIX directory.

5 Answers  


How to know a process is a zombie or orphan process?

3 Answers   Perot Systems,


Briefly, how do you install Oracle software on UNIX.

2 Answers  


What is the difference between cat command and more command?

0 Answers  


what is difference between unix and linux?

6 Answers   IBM, Shell, Wipro,


Categories