Skip to content

Instantly share code, notes, and snippets.

@Broxzier
Created February 26, 2025 12:45
Show Gist options
  • Save Broxzier/dcea05d9d73f759ad909d78a89fb5fcd to your computer and use it in GitHub Desktop.
Save Broxzier/dcea05d9d73f759ad909d78a89fb5fcd to your computer and use it in GitHub Desktop.
A command to remove the UTF-8 BOM and make line ending consistent for all *.cs files. The `*.cs` filter can of course be changed to any text file.
find . -name "*.cs" -print0 | xargs -0 sed -i 's/\xef\xbb\xbf//'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment