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 / kranthi kumar

:1,$s/amaze$/amazing/g

this will be changed only amaze in totalvi editor....

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I run a whois command?

600


What is a bash command?

624


Is grep faster than awk?

557


What does pipe () return?

592


What are file commands?

650






why metadb requires a seperate slice to create Solaris volume manager

2554


What is a command and examples?

583


Is command prompt unix?

579


What does this command do,"$more readme.txt“?

689


How do I find previous commands in unix?

592


What is the behavioural difference between cmp and diff commands?

673


Can you explain a little bit about command substitution?

607


What is the use of cut command in unix?

690


What are the general commands in using unix os for a beginner?

577


Explain command to display different lines that are found when compare two files?

676