How would you change all occurrences of a value using VI?
Answer Posted / chitra
One should be in command mode for doing this.(i.e press esc)
:%s/oldpattern/newpattern and press enter
| Is This Answer Correct ? | 3 Yes | 4 No |
Post New Answer View All Answers
How do I use nslookup?
What is rmdir command?
What is ‘ps’ command for?
What is the use of the tee command?
What is the comma to display different lines that are found when compare two files?
Explain command to show the space allocation of files?
Which command will print your home directory on screen?
What are reported commands?
What does the “echo” command do?
Is ‘du’ a command? If so, what is its use?
What does the metacharacter mean?
What is the use of cut command in unix?
How do I clear my terminal history?
Explain ‘library functions’ with respect to unix commands?
Which command can you use to find the currently running process in unix server?