VI global search and replace

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

Advertisements