1、文本替换shell
sed 's/old text/new text/' [file] ===> 只会替换第一行,会把替换结果输出到console sed 's/old text/new text/g' [file] ===> 替换所有内容,会把替换结果输出到console sed -i 's/old text/new text/' [file] ====> 直接修改文件
2、删除code