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

fork in unix ?

4 Answers   BFL,


What is ‘ps’ command for?

0 Answers  


In UNIX, what is the command to edit contents of the file?

9 Answers  


What is the use of pipes?

4 Answers  


Where LOG fiels resides in AIX and pls tel me how to remove the log file

6 Answers   Vestas,






distinguish between multi-tasking,multi-user,multi- processing and time sharing?

7 Answers   Alcatel, Cisco, Infosys, University Exams,


what is the use of nice command?

4 Answers  


What is the command to compare two files in unix?

0 Answers  


What does grep v grep do?

0 Answers  


what will this do $cat > file.c ?(file.c is a file in current directory)

20 Answers   IBM,


What does sed command do in unix?

0 Answers  


distinguish between multi-tasking,multi-user,multi- processing and time sharing?

4 Answers   Infosys, Nikhil Construction,


Categories