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

Answer Posted / tejaswa

Hi Durgesh, by this command you can add the content at the end of file2 not in the beginning.

Is This Answer Correct ?    16 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does sed command do in unix?

568


Which command will print your home directory on screen?

548


How do I use grep to search for a file?

584


Which command is used to delete all files in the current directory and all its sub-directories?

673


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

598






What is awk good for?

590


Which command is used to restrict incoming messages?

594


What is the function of grep command in unix?

594


What are the differences among a system call, a library function, and a unix command?

571


What is unix command?

586


What is the use of finger command?

603


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

562


What is sed awk grep?

609


Which command is used to create a directory?

577


When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system. How can i findthe right soluion??? My pgm: #include # include int main() { int pid; pid=fork(); if(pid < 0) {exit(-1);} else if(pid==0) { printf("Child Process is Sleeping ..."); sleep(10); printf("Orphan Child's Parent ID : %u ",getppid()); } else { printf("Parent Process Completed ... %u ",getpid()); exit(0); } return 0; } Output:

1768