Created
December 21, 2016 04:42
-
-
Save chetth/5ededb185c05793dc154bafd47c6f9b8 to your computer and use it in GitHub Desktop.
How to remove BOM from UTF-8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
awk '{if(NR==1)sub(/^\xef\xbb\xbf/,"");print}' text-with-bom.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tail --bytes=+4 text-with-bom.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment