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

why metadb requires a seperate slice to create Solaris volume manager

2554


What difference between cmp and diff commands?

720


How does shebang work?

588


What is the difference between grep and grep?

565


hw will u use awk in replacing cahrs and files

2727






Which command should you use to find the remaining disk space in unix server?

702


What is the use of sed command in unix?

597


Which command is used to find whether the system is 32 bit or 64 bit?

631


What is s and g in sed command?

557


How do you repeat a command in terminal?

587


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

589


What does the md command do?

568


What is awk used for?

616


How does the system know where one command ends and another begins?

1574


Enlist some filename manipulation commands in unix.

549