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
What is nr in awk command?
What is grep and how do you use it?
What is ctrl d?
How to use grep command to list find the records of a file containing 10 different strings?
What does 'mkdir' command do in UNIX?
What is rmdir command?
How do I use grep to search for a file?
What is the use of egrep command in unix?
What is grep r?
What does sed command do in unix?
Why is shebang used?
What is merge command in unix?
What does find command return in unix?
What does this command do,"$more readme.txt“?
What are bash commands?