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 does awk stand for?
What is command substitution?
What is the unix command to confirm a remote host is alive or not?
What is grep r?
Describe the zip/unzip command using gzip.
What is grep command in unix with examples?
What is used to type command?
What is the search command in unix?
What is the difference between cat and more command?
How do you repeat a command in terminal?
What is the command to find maximum memory taking process on the server?
Which command is used to restrict incoming messages?
How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?
What command is used to check the current users?
Explain mount and unmount command.