How would you change all occurrences of a value using VI?
Answer Posted / sameer
press esc+shift
then when the VI takes u to the edit mode use the following.
:1,$s/pattern to be changed/new value/g
Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
What is difference between grep and find command in unix?
Which command is used to create a directory?
What is rmdir command?
What is the function of grep command in unix?
What is the command to compare two files in unix?
What is the search command in unix?
Explain how to use grep command to list find the records of a file containing 10 different strings?
Explain ‘library functions’ with respect to unix commands?
What do chmod, chown, chgrp commands do?
What is a command and examples?
What is the use of the command 'ls -x chapter[1-5]' ?
What is the use of sed command in unix?
Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.
How to find $ai_serual resolved path by using unix
What are reported commands?