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 / chandra babu.p

s/string/string/g;
ex;

:s/unix/linux/g

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the steps that a shell follows while processing a command.

1288


What does #!/ Bin sh do?

1115


What is the command to find maximum memory taking process on the server?

1265


Differentiate cmp command from diff command.

1237


Which command is used to copy files?

1248


What is the significance of the 'tee' command?

1254


How does the system know where one command ends and another begins?

2313


How can you see the command line history?

1185


How do you repeat a command in terminal?

1293


What is sed awk grep?

1187


Are you in or at the office?

1171


What does sed command do in unix?

1250


What is the use of tee command?

1239


How do I find previous commands in unix?

1250


What is awk used for?

1179