Linux 查找bom头文件,清除bom头命令 1、查找bom头文件 grep -r -I -l $'^xEFxBBxBF' ./ 2、替换bom头文件 find . -type f -exec sed -i 's/xEFxBBxBF//' {} ;