i need to replace some strings and due to some reason,
vi
or vim
is my only options.
but the problem is i need this to be done in a shell script, is it possible to use vi
/vim
in cli mode like sed
?
e.g.
sed 's/hi/yo/g' la.txt
thanks
Asked by furynerd
(21 rep)
Aug 23, 2024, 02:26 AM