Global Search & Replace Using vi Editor

Global Search & Replace Using vi Editor

Note: This article will be emailed to your friend.

To perform a global search and replace in vi editor, use the search and replace command in command mode:
:%s/search_string/replacement_string/g
The % is a shortcut that tells vi to search all lines of the file for search_string and change it to replacement_string. The global ( g ) flag at the end of the command tells vi [...]

Read the rest of this article (117 words)

Please fill in the following fields

* - Required

Your Name: *

Your E-Mail: *

Your Remarks:

Friend's Name: *

Friend's E-Mail: *

Protected by Comment Guard Pro