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 command to find hidden files in the current directory?
What is the size of time_t?
Who command in unix?
What is the difference between grep and grep?
What do know about tee command?
What is the comma to display different lines that are found when compare two files?
What does touch command do in unix?
Explain ‘library functions’ with respect to unix commands?
What is $0 bash?
How to display no of records in oracle using unix command?
Write a command that will display files in the current directory, in a colored, long format.
What do chgrp command do?
Who command in unix operating system?
Does cp command overwrite files?
What is the difference between awk and grep?