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 / supreet goswami

sed-i "s| amaze |delight|g" filename

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to find $ai_serual resolved path by using unix

1034


Who command in unix operating system?

669


How do I find previous commands in unix?

603


Is command prompt unix?

586


What is grep in bash?

591






What is updatedb?

594


How does shebang work?

594


What is the difference between grep and grep?

575


How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?

767


What is used to type command?

552


What is the difference between cat command and more command?

606


What is a bash command?

629


What do chmod command do?

606


What are the general commands in using unix os for a beginner?

585


What is awk used for?

626