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 / majeed
First open the file by using vi editor and then
use this :%s /amaze/delight/g
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.
How to display no of records in oracle using unix command?
What is the first character of the output in ls l command?
What command will change your prompt to myprompt?
Explain command to show the space allocation of files?
What does grep v grep do?
What will the following command do?
Describe the zip/unzip command using gzip.
what is the advaantage of each user having its own copy of the shell?
Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?
What does pipe () return?
Can you explain a little bit about command substitution?
What does #!/ Bin sh do?
What is difference between grep and find command in unix?
What's a command word?