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 / majeed

First open the file by using vi editor and then

use this :%s /amaze/delight/g

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the search command in unix?

1048


Give the command for finding the current date.

1036


What is grep and how do you use it?

1049


Which command is used to copy files?

1120


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

1091


What is the use of awk command in unix?

1068


Is command prompt unix?

1096


What is difference between grep and find command in unix?

1142


What happens when we execute a unix command?

1089


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

1070


How does shebang work?

1018


What does the metacharacter mean?

1087


What is the comma to show the space allocation of files?

1014


What is the difference between cat and more command?

1225


Which command will print your home directory on screen?

1031