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
What is “chmod” command?
Why is grep called grep?
Write a command to display a file’s contents in various formats?
How does the system know where one command ends and another begins?
What is command substitution?
What do chmod, chown, chgrp commands do?
What does awk stand for?
How do you grep a case insensitive?
Why is shebang used?
What are file commands?
Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.
What is the comma to show the space allocation of files?
What is the difference between cat command and more command?
What is the difference between awk and grep?
How do I search a whole word in vim?