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...

What command is used to replace the existing string with
some other?

Answer Posted / pavankumar

sed 's/word1/word2/g' file

it replaces all occurences of word1 with word2 in file.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to sort the content of the file based on numeric values

1729


Explain ‘system calls’ with respect to unix commands?

1038


Differentiate cat command from more command.

1083


What is “chmod” command?

1096


What is the difference between cat and more command?

1225


Which command should you use to find the remaining disk space in unix server?

1231


Which command is used to copy files?

1119


How do I run a whois command?

1099


What do know about tee command and its usage?

1122


Which unix command to make a new directory?

1065


How to display no of records in oracle using unix command?

1101


Is it inbetween or in between?

998


What does grep v do?

1002


Which command can you use to find the currently running process in unix server?

1069


What command will change your prompt to myprompt?

1251