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
What do chown command do?
How many unix commands are there?
Which command is used to copy files?
How does pipe () work?
What is the command to view process running?
What is the use of cut command in unix?
How do I clear my terminal history?
Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?
What do chmod command do?
What are the differences among a system call, a library function, and a unix command?
How do I search for text in vi?
What is in grep command?
What do know about tee command and its usage?
What is grep in bash?
What is s and g in sed command?