1、查找bom头文件 grep -r -I -l $'^\xEF\xBB\xBF' ./ 2、替换bom头文件 find . -type f -exec sed -i 's/\xEF\xBB\xBF//' {} \; 相关文章: