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

What is nr in awk command?

600


What is grep and how do you use it?

575


What is ctrl d?

594


How to use grep command to list find the records of a file containing 10 different strings?

643


What does 'mkdir' command do in UNIX?

660






What is rmdir command?

553


How do I use grep to search for a file?

580


What is the use of egrep command in unix?

624


What is grep r?

591


What does sed command do in unix?

560


Why is shebang used?

595


What is merge command in unix?

942


What does find command return in unix?

592


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

688


What are bash commands?

589