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
How does shebang work?
How do you repeat a command in terminal?
How can you see the command line history?
What is difference between grep and find command in unix?
What is merge command in unix?
Which command is used to kill the last background job?
How does pipe () work?
What does pipe () return?
What is used to type command?
Which command is used to delete all files in the current directory and all its sub-directories?
How do I run a bash script?
What is s and g in sed command?
What does the “echo” command do?
What is the difference between cat command and more command?
What do know about tee command and its usage?