Created
March 5, 2018 17:05
-
-
Save phackwer/91bf25844b3df91dfd2d1b60ca3d6889 to your computer and use it in GitHub Desktop.
Remove BOM recursively
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
grep -rl $'\xEF\xBB\xBF' `pwd` > file_with_boms.txt | |
while read l; do sed -i '1 s/^\xef\xbb\xbf//' $l; done < file_with_boms.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment