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
How can you see the command line history?
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)?
How do I search for a file in unix command?
What are the differences among a system call, a library function, and a unix command?
Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?
What is the use of sed command in unix?
Which command can you use to find the currently running process in unix server?
What is grep short for?
How do you repeat a command in terminal?
Is it inbetween or in between?
Enumerate some of the most commonly used network commands in unix?
Who command in unix?
What are bash commands?
What is the use of tee command?
Which command is used to delete all files in the current directory and all its sub-directories?