Editors Question:
Download Questions PDF

How to replace String "a" with String "b" in whole file of the vi editor?

Answer:

:g/string1/s//string2/g

ex:
:g/a/s//b/g

Download Editors Interview Questions And Answers PDF

Previous QuestionNext Question
What does the /text command do?What are the different commands used to quit from the vi editor?