Skip to content

Instantly share code, notes, and snippets.

@RemRyahirev
Created February 20, 2018 10:37
Show Gist options
  • Save RemRyahirev/6920e6d57880d6253f917678cfbcb388 to your computer and use it in GitHub Desktop.
Save RemRyahirev/6920e6d57880d6253f917678cfbcb388 to your computer and use it in GitHub Desktop.
Remove BOM from all affected files in current dir recursive
#!/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