Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Why is grep called grep?

1249


What is nr in awk command?

1158


What are file commands?

1192


What is the size of time_t?

1178


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:

2221


What do chgrp command do?

1164


What is “chmod” command?

1120


Which command is used to restrict incoming messages?

1064


What does touch command do in unix?

1365


What is awk used for?

1098


What is rmdir command?

1061


What difference between cmp and diff commands?

1275


Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?

1363


Which command is used to kill the last background job?

1306


What is the use of cut command in unix?

1320