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

sed 's/amaze/amazing/g' filename.txt

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

hw will u use awk in replacing cahrs and files

3248


What does grep v grep do?

1079


What is the difference between cat and more command?

1299


What will the following command do?

1121


What command is used to switching between users in unix?

1082


How do I find previous commands in unix?

1194


What is a bash command?

1181


How do I clear my terminal history?

1168


What is ‘ps’ command for?

1187


What is unix command?

1264


What is ctrl d?

1099


What is grep and how do you use it?

1117


Which command will print your home directory on screen?

1084


What does the command '$ls | wc –l > file1' do?

1233


What happens when we execute a unix command?

1147