Editors Question:

Download Job Interview Questions and Answers PDF

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

Editors Interview Question
Editors Interview Question

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?