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

How do I run a bash script?

1190


What are the differences among a system call, a library function, and a unix command?

1232


How does pipe () work?

1104


What is the use of the tee command?

1099


What will the following command do?

1127


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

2561


What is ctrl d?

1103


What are filter commands in unix?

1204


What is the use of finger command?

1219


What does pipe () return?

1080


What is sed awk grep?

1139


Which unix command to make a new directory?

1152


How do I search a whole word in vim?

1180


What is unix command?

1268


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

1789