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 / kranthi kumar
:1,$s/amaze$/amazing/g
this will be changed only amaze in totalvi editor....
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
How can you see the command line history?
Which command is used to delete all files in the current directory and all its sub-directories?
What is s and g in sed command?
What does grep v do?
What is the functionality of a top command?
What is unix command line?
Who invented grep?
Write a command that will display files in the current directory, in a colored, long format.
What are bash commands?
How do I search for a file in unix command?
How to use grep command to list find the records of a file containing 10 different strings?
What is rmdir command?
Which command is used to restrict incoming messages?
Who command in unix operating system?
What is awk good for?