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
Explain how to use grep command to list find the records of a file containing 10 different strings?
What is awk good for?
What is the behavioural difference between cmp and diff commands?
What do chgrp command do?
What is in grep command?
What is the use of tee command?
Give the command for finding the current date.
What is grep and how do you use it?
What is unix command line?
What difference between cmp and diff commands?
how to sort the content of the file based on numeric values
Enlist some filename manipulation commands in unix.
What is ctrl d?
What do chmod, chown, chgrp commands do?
How do I find previous commands in unix?