Hi All,
To search and replace using Vi editor - issue this below command in "Insert" mode:
:%s/search_text/replace_text/g
where:
1. : is for Insert mode (Esc + i or Insert or shift i)
2. %s is for search
3. g is for Global search through the file.
Thanks & Regards,
Ananth S Gouri
Showing posts with label search and replace in Vi Editor. Show all posts
Showing posts with label search and replace in Vi Editor. Show all posts
Friday, June 11, 2010
Subscribe to:
Posts (Atom)