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 awk used for?
Why is it called a shebang?
What will the following command do?
How do I search for text in vi?
What is the unix command to confirm a remote host is alive or not?
What is sed awk grep?
Can you enlist some commonly used network commands?
What is in grep command?
What is the size of time_t?
What is the use of tee command?
Which unix command lists files/folders in alphabetical order?
What is the command to view process running?
What does find command return in unix?
Why is shebang used?
Can you explain a little bit about command substitution?