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 / shilpi gupta

sed 's/\<amaze\>/delight/g' file_name

or

In Vi editor..you can use

:%s/\<amaze\>/delight/g

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1170


How do I run a whois command?

1119


Enumerate some of the most commonly used network commands in unix?

1125


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

1130


What is grep r?

1053


Who command in unix?

1104


Which command is used to find whether the system is 32 bit or 64 bit?

1096


What is the pipe command?

1141


What is a command and examples?

1175


How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?

1277


What is the function of grep command in unix?

1126


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

1133


How to find $ai_serual resolved path by using unix

1673


What is in grep command?

1136


What command will change your prompt to myprompt?

1277