Skip to content
Advertisement

Replace every occurrence of the regular expression matching with a particular in VI editor?

suppose I have a text file as follows.

JavaScript

I need to obtain that text file as follows by replacing every table owner name occurrences replace witha same name called “informix”.

out put should be like

JavaScript

in vi editor ,

:%s/”kevin”/”informix”/g

I can replace them individually but I need to do all of them at once.

Advertisement

Answer

JavaScript

Explanation:

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement