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

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

688


Why is it called grep?

566


What's a command word?

593


How do I run a bash script?

588


hw will u use awk in replacing cahrs and files

2740






What happens when we execute a unix command?

606


What does pipe () return?

602


Is grep faster than awk?

573


What is “chmod” command?

569


What are awk commands?

590


Enumerate some of the most commonly used network commands in unix?

624


Who command in unix operating system?

669


What is in grep command?

654


What are the dos commands?

661


Which command is used to delete all files in the current directory and all its sub-directories?

676