sed 使用范例 作者: 纸一 时间: 2024-07-08 分类: 运维 1.删除注释行sed -i '/^#/d' filename2.删除空行sed -i '/^$/d' filename3.替换sed 's/123/abc/g' filename 标签: none