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 / ahmed
sed 's/amaze/amazing/g' filename.txt
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Which command is used to restrict incoming messages?
What is sed awk grep?
What is the command to find hidden files in the current directory?
What do chown command do?
What do chmod, chown, chgrp commands do?
What is ‘ps’ command for?
What is “chmod” command?
How do you grep a case insensitive?
What does grep v do?
How to use grep command to list find the records of a file containing 10 different strings?
Explain command to show the space allocation of files?
Is command prompt unix?
What are grep patterns?
How do I run a whois command?
How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?