Hi Team,
Is it possible to do the basic vim edition tasks using the shell script
for eg:
%s/search/replace/g
is it possible to do the above example using shell script with editing it manually.
Regards
Kanna
vim tasks in shell script
Re: vim tasks in shell script
To edit a file is not a "vim task". It is a "edit" task. There are many ways to edit files. Vim is only one of them. sed is an another.
Yes, it is possible to edit files with a script.
Code: Select all
man sed
info sed
Re: vim tasks in shell script
You can also edit it with mc (Midnight Commander).jlehtone wrote: ↑2018/08/09 06:12:17To edit a file is not a "vim task". It is a "edit" task. There are many ways to edit files. Vim is only one of them. sed is an another.Yes, it is possible to edit files with a script.Code: Select all
man sed info sed