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 / supreet goswami

sed-i "s| amaze |delight|g" filename

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1135


Explain how to use grep command to list find the records of a file containing 10 different strings?

1083


What is the pipe command?

1204


How can we use grep command in unix?

1222


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

1171


What is the size of time_t?

1226


What do chmod command do?

1241


What is the function of grep command in unix?

1191


Explain mount and unmount command.

1234


What is the nmap command?

1200


Can you explain a little bit about command substitution?

1125


What's a command word?

1190


What does the metacharacter mean?

1145


What difference between cmp and diff commands?

1322


What is the use of cut command in unix?

1383