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

What is awk used for?

624


Why is it called a shebang?

574


What will the following command do?

620


How do I search for text in vi?

590


What is the unix command to confirm a remote host is alive or not?

588






What is sed awk grep?

609


Can you enlist some commonly used network commands?

604


What is in grep command?

650


What is the size of time_t?

654


What is the use of tee command?

573


Which unix command lists files/folders in alphabetical order?

621


What is the command to view process running?

578


What does find command return in unix?

598


Why is shebang used?

600


Can you explain a little bit about command substitution?

612