Sample Header Ad - 728x90

how to use `vi`/`vim` in cli mode like `sed`

0 votes
0 answers
31 views
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