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
Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?
Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?
Explain command to view process running?
What does 'mkdir' command do in UNIX?
hw will u use awk in replacing cahrs and files
Who command in unix?
What does grep v grep do?
What is grep and how do you use it?
What is ctrl d?
Is ‘du’ a command? If so, what is its use?
What is $0 bash?
What is the pipe command?
Are you in or at the office?
What is used to type command?
Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.