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 / majeed
First open the file by using vi editor and then
use this :%s /amaze/delight/g
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
Which command is used to delete all files in the current directory and all its sub-directories?
What is the behavioural difference between cmp and diff commands?
What is the use of find command in unix?
What are the unix commands?
What is the use of sed command in unix?
What is the significance of the 'tee' command?
Name the various commands that are used for the user information in unix.
What's a command word?
How do I clear my terminal history?
What is the first character of the output in ls l command?
What does touch command do in unix?
What does 'mkdir' command do in UNIX?
What is the difference between awk and grep?
What are some command words?
Describe the zip/unzip command using gzip.