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
What do chmod, chown, chgrp commands do?
What command is used to check the current users?
How do I search a whole word in vim?
Does cp command overwrite files?
What is grep r?
What does this command do? Cat food 1 > kitty
How to display no of records in oracle using unix command?
How does shebang work?
why metadb requires a seperate slice to create Solaris volume manager
What is updatedb?
What is the difference between grep and grep?
Who command in unix?
Explain command to display different lines that are found when compare two files?
What is the general format of unix command syntax?
What does #!/ Bin sh do?