Skip to main content

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

Popular posts from this blog

Could not place because the source rectangle is empty

Thread: Using smartcard reader with vpnc

Adobe Font Folio 7.0 or just 7?