BOM is nothing more than a nuisance. Detecting and removing it is plain simple. There's a utility called
bomstrip that pretty much does what is says and there's the one-liner AWK implementation that you find on stackoverflow (I've added whitespaces for better readability):
awk '{ if (NR == 1) sub(/^\xef\xbb\xbf/, ""); print }' INFILE > OUTFILE
Or a sed version (replaces in place):
sed -i -e '1s/^\xEF\xBB\xBF//' FILE
To do this (or just simply detect BOM) recursively in a dir, you'll find tons of ideas
in this other stackoverflow article.
Recent comments
1 day 14 hours ago
1 day 14 hours ago
3 days 19 hours ago
1 week 1 day ago
1 week 1 day ago
1 week 2 days ago
1 week 2 days ago
1 week 2 days ago
1 week 4 days ago
1 week 6 days ago