> How to perform a global search and replace in vi
To perform a global search and replace in vi, use the search and replace command in command mode:
To perform a global search and replace in vi, use the search and replace command in command mode:
:%s/search_string/replacement_string/g