单行
写入
$ echo "ETCD_DATA_DIR=/var/lib/etcd">test.conf
$ cat test.conf
ETCD_DATA_DIR=/var/lib/etcd
追加
$ echo "ETCD_NAME=etcd-test">>test.conf
$ cat test.conf
ETCD_DATA_DIR=/var/lib/etcd
ETCD_NAME=etcd-test
多行
写入
$ cat >test.conf<<EOF
> ETCD_DATA_DIR_=/var/lib/etcd
> EOF
$ cat test.conf
ETCD_DATA_DIR_=/var/lib/etcd
追加
$ cat>>test.conf <<EOF
> ETCD_NAME=etcd-test
> EOF
$ cat test.conf
ETCD_DATA_DIR_=/var/lib/etcd
ETCD_NAME=etcd-test