菜鸟笔记
提升您的技术认知

sed匹配某一行开头,替换整行内容

使用sed命令在Linux环境中替换配置文件中的特定行

sed -i '/^cloud_server_ip/ccloud_server_ip = update.skyeye.360safe.com' name.txt