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


Please Help Members By Posting Answers For Below Questions

What is the command to find hidden files in the current directory?

587


What is the size of time_t?

654


Who command in unix?

578


What is the difference between grep and grep?

569


What do know about tee command?

607






What is the comma to display different lines that are found when compare two files?

595


What does touch command do in unix?

733


Explain ‘library functions’ with respect to unix commands?

605


What is $0 bash?

653


How to display no of records in oracle using unix command?

591


Write a command that will display files in the current directory, in a colored, long format.

689


What do chgrp command do?

594


Who command in unix operating system?

667


Does cp command overwrite files?

626


What is the difference between awk and grep?

561