search and replace with vi

This post will help you how to search and replace specific string with new string in vi editor. User following command to replate ‘oldstr’ with ‘newstr’

:%s/oldstr/newstr/g

Hope this will help you faster on your job.

Leave a Reply