Here is a simple way how to find the list of such files:
find -type f|while read file;do [ "`head -c3 -- "$file"`" == $'\xef\xbb\xbf' ] && echo "found BOM in: $file";doneYou may write a shell script if you wish:
find -type f |
while read file do
if [ "`head -c 3 -- "$file"`" == \xef\xbb\xbf' ] then
echo "found BOM in: $file"
fi
done
If you are windows developer consider Cygwin :)