grep -r -I -l $’^\xef\xbb\xbf’ ./*|xargs -i sed -i ‘1 s/^\xef\xbb\xbf//’ {} 在linux上面运行,将上面的./*换成你的目录即可。