(linux常用命令)sed 发表于 2018-05-08 | 分类于 tech | Mac1find ./ -type f -name "*.py" -exec sed -i '' -e 's/foo/bar/' {} \; Linux1find . -type f -name "*baz*" -exec sed -i 's/foo/bar/g' {} + 常见错误:sed: RE error: illegal byte sequence导入如下命令,可恢复正常12export LC_COLLATE='C'export LC_CTYPE='C'