Skip to content

Instantly share code, notes, and snippets.

@fabiokung
Created June 26, 2010 23:49
Show Gist options
  • Save fabiokung/454463 to your computer and use it in GitHub Desktop.
Save fabiokung/454463 to your computer and use it in GitHub Desktop.
shell one-liner to include encoding annotations in all ruby files
grep -F "# -*- coding: UTF-8 -*-" -L app/**/*.rb | while read file; do sed -e '1i\
# -*- coding: UTF-8 -*-\n' -i '' $file; done
@plentz
Copy link

plentz commented Jul 1, 2010

boa cabelo!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment