Created
February 20, 2018 10:37
-
-
Save RemRyahirev/6920e6d57880d6253f917678cfbcb388 to your computer and use it in GitHub Desktop.
Remove BOM from all affected files in current dir recursive
This file contains hidden or 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
#!/bin/sh | |
find . -type f -exec sed 's/^\xEF\xBB\xBF//' -i.bak {} \; -exec rm {}.bak \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment