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 / ahmed

sed 's/amaze/amazing/g' filename.txt

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does this command do? Cat food 1 > kitty

981


What is the behavioural difference between cmp and diff commands?

678


Who invented grep?

655


Which command can you use to find the currently running process in unix server?

590


How do you repeat a command in terminal?

596






Enumerate some of the most commonly used network commands in unix?

620


How do I use grep to search for a file?

584


What is grep short for?

558


How do I search for text in vi?

590


How do I run a whois command?

605


How do I find previous commands in unix?

596


What is pipe command in unix?

677


Describe the zip/unzip command using gzip.

615


What is merge command in unix?

946


What command will change your prompt to myprompt?

706