写入多个变量到配置文件linux

Posted 陌上花开

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了写入多个变量到配置文件linux相关的知识,希望对你有一定的参考价值。

#!/bin/bash
cat <<EOF >> /etc/ecs/ecs.config
ECS_CLUSTER=MyCluster
ECS_ENGINE_AUTH_TYPE=docker
ECS_ENGINE_AUTH_DATA={"https://index.docker.io/v1/":{"username":"my_name","password":"my_password","email":"[email protected]"}}
ECS_LOGLEVEL=debug
EOF

 

以上是关于写入多个变量到配置文件linux的主要内容,如果未能解决你的问题,请参考以下文章