Which command is used to replace many characters?
Answers were Sorted based on User's Feedback
Answer / amita
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
| Is This Answer Correct ? | 6 Yes | 1 No |
Answer / gourab ranjan seth
press esc, then R to replace multiple characters
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / ali ahsan
Try
:%s/<Character1>/blah/cge | %s/<character2>/222/cge
and so on.
OR if you have to replace many charcters with single charcter you can try as mentioned below
:%s/<Character1|character2|.....>/blah/cge
| Is This Answer Correct ? | 0 Yes | 0 No |
How to enter from command mode to insertion mode?
what are the different delete commands used in vi editor?
What is the command used to replace many characters?
HOW WE CAN MAKE THE DLIEVERY WHICH IS BLOCKED DUE TO CREDIT LIMIT.
What does the /text command do?
what is the command used to delete current line in vi editor?
What is the difference between ZZ and :wq commands?
What is the command used to display line numbers in vi editor?
How to append a file to current file?
what are the two different modes in vi editor?
How to return to shell without leaving vi editor?
Which command is used to replace many characters?