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 replace the exact word in vi editor??
suppose a file contains words like amaze,amazed,amazement in
some of the line.But i want to replace only 'amaze' with
delight but don't wanna replace amazed or amazement.
thanks

Answer Posted / chandra babu.p

s/string/string/g;
ex;

:s/unix/linux/g

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does the md command do?

1077


What are reported commands?

1080


What is the first character of the output in ls l command?

1160


Who wrote grep?

1018


What is the size of time_t?

1154


What is s and g in sed command?

1065


Name the various commands that are used for the user information in unix.

1024


How do I clear my terminal history?

1097


What does the “echo” command do?

1101


What does grep v grep do?

1027


How do I use nslookup?

1046


What is the use of the command 'ls -x chapter[1-5]' ?

1159


Name the general commands in using unix os for a beginner?

1095


Why is shebang used?

1053


What are filter commands in unix?

1114