To perform a global search and replace in vi do:
:%s/search_string/replacement_string/g If you want to confirm each replacement add a “c” after the “g” at the end of the string. No related posts. Tags: replace, search, vi Filed in vi
:%s/search_string/replacement_string/g
If you want to confirm each replacement add a “c” after the “g” at the end of the string.
No related posts.
Tags: replace, search, vi
Comments are closed.