I have a large file which has "some string"so many times, i want it to be replaced with "other string" at all places, using vi or vim editor? Is there any way to do that?
Use below syntax
:%s/somestring/otherstring/g
vi (vim) is not difficult to learn, the vi editor is well known and used for both writing code and editing config files.
Use below syntacx to replace the string with another string in VIM Editor
:%s///gc
"C" it will ask for confrimation whether to replace or not. "g" used to replace.
I have a Linux machine and windows machine, I need to run a GUI of Linux machine on the windows machine. I don't want to use putty or any other software. I have to use any Perl modules to achieve this please help.