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

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

1124


What is awk good for?

1192


What is the behavioural difference between cmp and diff commands?

1342


What do chgrp command do?

1287


What is in grep command?

1212


What is the use of tee command?

1239


Give the command for finding the current date.

1175


What is grep and how do you use it?

1175


What is unix command line?

1336


What difference between cmp and diff commands?

1352


how to sort the content of the file based on numeric values

1840


Enlist some filename manipulation commands in unix.

1221


What is ctrl d?

1157


What do chmod, chown, chgrp commands do?

1352


How do I find previous commands in unix?

1250