How would you change all occurrences of a value using VI?
Answer Posted / sridhar
press esc+shift
then when the VI takes u to the edit mode use the following.
:%s/pattern/new value/g
| Is This Answer Correct ? | 13 Yes | 0 No |
Post New Answer View All Answers
What are reported commands?
How do you grep a case insensitive?
Does cp command overwrite files?
What is the significance of the 'tee' command?
Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?
What do chmod command do?
What is {} in find command?
What command is used to check the current users?
What are the differences among a system call, a library function, and a unix command?
What is awk used for?
What is awk command used for?
What is the general format of unix command syntax?
What is nr in awk command?
Enumerate some of the most commonly used network commands in unix?
What is a bash command?