We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
To check if there is a BOM:
sed $'1 s/\xEF\xBB\xBF/BOM/' < "/PATH/TO/FILE" | head -c10 && echo ""
The text was updated successfully, but these errors were encountered:
To list all the culprit files in the current folder:
find . -type f \( -name "*.html" -or -name "*.xhtml" -or -name "*.js" -or -name "*.css" -or -name "*.smil" \) -print0 | xargs -0 -I % sh -c "echo ''; echo %; sed $'1 s/\xEF\xBB\xBF.*/zzzzzzzzzzzzzz BOM/' < % | head -n1 ; echo ''"
Or to filter out only the BOMs:
find . -type f \( -name "*.html" -or -name "*.xhtml" -or -name "*.js" -or -name "*.css" -or -name "*.smil" \) -print0 | xargs -0 -I % sh -c "echo ''; sed $'1 s/\xEF\xBB\xBF.*/BOM /' < % | head -c4 ; echo %;" | grep "BOM"
Sorry, something went wrong.
fixes #123 (support for UTF8 files with superfluous BOM)
b1e9a90
No branches or pull requests
To check if there is a BOM:
The text was updated successfully, but these errors were encountered: