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

Answer Posted / shilpi gupta

cat file1 file2 >>file3|mv file3 file2

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the dos commands?

665


Using unix command how to display no of records in oracle?

620


what is the advaantage of each user having its own copy of the shell?

2047


How do I clear my terminal history?

592


Which command is used to copy files?

570






What are the general commands in using unix os for a beginner?

585


What is command statement?

555


What does find command return in unix?

608


What command is used to check the current users?

602


Why is awk called awk?

583


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:

1773


What is the command to find hidden files in the current directory?

599


What is grep command in unix with examples?

616


What will the following command do?

627


What is the difference between awk and grep?

567