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 / majeed
First open the file by using vi editor and then
use this :%s /amaze/delight/g
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
What is the search command in unix?
Give the command for finding the current date.
What is grep and how do you use it?
Which command is used to copy files?
Is ‘du’ a command? If so, what is its use?
What is the use of awk command in unix?
Is command prompt unix?
What is difference between grep and find command in unix?
What happens when we execute a unix command?
Which command can you use to find the currently running process in unix server?
How does shebang work?
What does the metacharacter mean?
What is the comma to show the space allocation of files?
What is the difference between cat and more command?
Which command will print your home directory on screen?