1.

Which Command Is Used To Replace Many Characters In Vi Editor?

Answer»

change COMMAND can be used to change a word/line.

cw change word forward
cb change word backward
c$ change from cursor to end of line
cL change from CURRENT line to and of screen
cG change from current line to and of FILE

or if you want to replace all occurence of some SPECIFIC CHARACTER

:%s/oldText/newText/g

change command can be used to change a word/line.

cw change word forward
cb change word backward
c$ change from cursor to end of line
cL change from current line to and of screen
cG change from current line to and of file

or if you want to replace all occurence of some specific character

:%s/oldText/newText/g



Discussion

No Comment Found