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 do I run a whois command?

599


What is the nmap command?

582


What are file commands?

650


What does the command ' $who | sort –logfile > newfile' do?

768


What do know about tee command?

601






what is the advaantage of each user having its own copy of the shell?

2034


Explain command to show the space allocation of files?

629


Does cp command overwrite files?

620


What does awk stand for?

605


What is awk good for?

582


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

631


What is in grep command?

647


What is the use of egrep command in unix?

624


What does 'mkdir' command do in UNIX?

660


What is {} in find command?

584