Thread: How to edit a file using a command?
hi all,
want edit file. usually, "vi file.conf " , press "i" , key in "123" , "esc" , ":wq!" . there way can in single line. copy , paste.
thanks.
do mean edit or create?
create
$ echo 123 > file.conf
append existing
$ echo 123 >> file.conf
more complicated editing can try using approach along sed, see:
http://manpages.ubuntu.com/manpages/...ase-sed.1.html
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support New to Ubuntu [SOLVED] How to edit a file using a command?
Ubuntu
Comments
Post a Comment