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

Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.

1247


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

1174


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

1216


What command will change your prompt to myprompt?

1332


Explain command to show the space allocation of files?

1126


What does grep v grep do?

1079


What will the following command do?

1121


Describe the zip/unzip command using gzip.

1160


what is the advaantage of each user having its own copy of the shell?

2559


Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?

1221


What does pipe () return?

1075


Can you explain a little bit about command substitution?

1118


What does #!/ Bin sh do?

1068


What is difference between grep and find command in unix?

1217


What's a command word?

1178