search and replace in vi
How to seach and replace in Linux using Vi editor.
:%s/word/replacement/gi
i — > denotes all words without case sensitive
g– > all matching words
OR
:w file /* save to file */
:10,15w file /* save lines to file*/
Category: Linux Administration
