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 the general format of unix command syntax?
How do you grep recursively?
Enumerate some of the most commonly used network commands in unix?
Differentiate cat command from more command.
How does shebang work?
What does the metacharacter mean?
Which command is used to kill the last background job?
What is “chmod” command?
What do chmod, chown, chgrp commands do?
How do I run a bash script?
What is s and g in sed command?
What are grep patterns?
Describe the zip/unzip command using gzip.
How do I delete files from command prompt?
What is the significance of the 'tee' command?