Skip to content

Instantly share code, notes, and snippets.

@gacha
Created October 5, 2015 20:06
Show Gist options
  • Save gacha/746486c23504eca7f237 to your computer and use it in GitHub Desktop.
Save gacha/746486c23504eca7f237 to your computer and use it in GitHub Desktop.
Remove old ruby encoding comment
find ./ -name *.rb | xargs -I{} ruby -i -ne 'print unless /^#\s?encoding:\s?utf-8/i' {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment