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 do know about tee command and its usage?
how to sort the content of the file based on numeric values
Enlist some filename manipulation commands in unix.
What is difference between grep and find command in unix?
What does the command '$ls | wc –l > file1' do?
What is unix command?
How do I delete files from command prompt?
What command is used to switching between users in unix?
Which unix command to make a new directory?
What does find command return in unix?
How do I search for text in vi?
What is pipe command in unix?
Explain how to use grep command to list find the records of a file containing 10 different strings?
What is the difference between cat command and more command?
Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?