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 command is used to switching between users in unix?
What is $0 bash?
What is the significance of the 'tee' command?
What is difference between grep and find command in unix?
What does 'mkdir' command do in UNIX?
Which command is used to kill the last background job?
Who wrote grep?
What is grep command in unix with examples?
Are you in or at the office?
What is ‘ps’ command for?
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)?
Write a command that will display files in the current directory, in a colored, long format.
What's a command word?
How do I run a whois command?
What is the command to find maximum memory taking process on the server?