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 / chandra babu.p

s/string/string/g;
ex;

:s/unix/linux/g

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Using unix command how to display no of records in oracle?

871


What is grep in bash?

803


What is .sh file?

860


What is the command to compare two files in unix?

853


What is awk good for?

820


What is grep r?

825


Name the various commands that are used for the user information in unix.

820


Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?

1236


Can you explain a little bit about command substitution?

851


What is unix command?

910


What command will change your prompt to myprompt?

945


What is the nmap command?

841


What does sed command do in unix?

822


What is the use of find command in unix?

790


What is ‘ps’ command for?

884