Thread: vi help
hi everbody
managed make me script reconfigure automacitally routing tables (wireless internet; wired connected hotspot ftpd)
need @ last remove line "2" /etc/resolv.conf
when tryicode:root@hp-compaq-8510w:~# vi +2 --cmd "dd" /etc/resolv.conf.error detected while processing pre-vimrc command line:
e492: not editor command: dd
press enter or type command continue
help.
vi visual editor, not suited non-interactive use. use ed that.
code:firas@aoba ~ % cat test.txt foo bar baz firas@aoba ~ % echo "2d\nw" | ed test.txt 12 8 firas@aoba ~ % cat test.txt foo baz
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] vi help
Ubuntu
Comments
Post a Comment