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

Answer Posted / ahmed

Use sed command
sed -i'' '1 i this is firts line' temp123

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.

628


What are some command words?

569


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:

1766


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

571


Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?

593






What is the use of the tee command?

602


Is ‘du’ a command? If so, what is its use?

639


Enlist some filename manipulation commands in unix.

556


What is a command and examples?

590


What does this command do,"$more readme.txt“?

693


What is the behavioural difference between cmp and diff commands?

682


Which unix command lists files/folders in alphabetical order?

622


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

2040


What is grep and how do you use it?

581


What is the function of grep command in unix?

593