Linux 未安装vi如何编辑文件

sed -i "s/搜索内容/替换内容/g" 文件名

原文地址:https://www.cnblogs.com/lishidefengchen/p/10684686.html