sed常见操作

打印: sed -n '/yes/p' test.txt #打印test.txt文件中包含yes的行 大小定转换: sed 'y/abcdef/ABCDEF/' test.txt 更改: sed '/BOOTPROTO/c BOOTPROTO=dhcp' test.txt 替换: sed '/yes/s//no/g' test.txt 合并文件: sed '$r test.s
相关文章
相关标签/搜索