Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lrasmus/bb1dacb8670277c05ce8e5a021222f17 to your computer and use it in GitHub Desktop.
Save lrasmus/bb1dacb8670277c05ce8e5a021222f17 to your computer and use it in GitHub Desktop.
Remove BOM from file on macOS / Linux
# Via: https://unix.stackexchange.com/a/412845
vi -c ":set nobomb" -c ":wq" <filename.txt>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment