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

how to find largest file?

14 Answers   HCL, Microsoft, Thomson Reuters,


what is the command to list all files in a directory, including the hidden files in UNIX ?

9 Answers   CTS,


What is the difference between Shell Programming and Shell scripting?

10 Answers   HCL, TCS, Wipro,


What are file commands?

0 Answers  


what these two commands prints "echo test","cat test"?

6 Answers   TCS, Wipro,


what is difference between unix and linux?

6 Answers   IBM, Shell, Wipro,


Explain how to use grep command to list find the records of a file containing 10 different strings?

0 Answers  


What is the pipe command?

0 Answers  


How do you find files in Unix?

2 Answers  


distinguish between physical addresses and logical address?

23 Answers   College School Exams Tests, CTS, Infosys, SAX, TATA, TCS,


How to find the files that are accessed before 10 minutes?

5 Answers   Amazon,


What does the command ' $who | sort –logfile > newfile' do?

0 Answers  


Categories