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
How many unix commands are there?
What is updatedb?
What is difference between grep and find command in unix?
How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?
What is the command to view process running?
How do I use grep to find a file?
Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?
What are grep patterns?
What is the comma to show the space allocation of files?
What is the use of egrep command in unix?
Explain command to display different lines that are found when compare two files?
Why is awk called awk?
What is grep r?
What is the command to find maximum memory taking process on the server?
Can you enlist some commonly used network commands?