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 use of cut command in unix?
Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?
What do chown command do?
How do I use nslookup?
What is .sh file?
Is grep faster than awk?
Write a command to display a file’s contents in various formats?
What does #!/ Bin sh do?
What is the use of the tee command?
Explain ‘library functions’ with respect to unix commands?
How do I find previous commands in unix?
How do I delete files from command prompt?
What does the md command do?
What is the use of awk command in unix?
Name the general commands in using unix os for a beginner?