sed查找替换

cooolr 于 2021-04-11 发布

sed -i "s/string1/string2/g" test.py

查找并删除

sed -i "/python/d" test.py