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 / chandra babu.p
s/string/string/g;
ex;
:s/unix/linux/g
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
How do you grep recursively?
What command will change your prompt to myprompt?
How do I delete files from command prompt?
How do I find previous commands in unix?
What is the command to find maximum memory taking process on the server?
Give the command for finding the current date.
What do know about tee command?
Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?
What does the “echo” command do?
hw will u use awk in replacing cahrs and files
Is it inbetween or in between?
What is the use of finger command?
What does grep v do?
Explain ‘system calls’ with respect to unix commands?
What does the command ' $who | sort –logfile > newfile' do?