Created
June 26, 2010 23:49
-
-
Save fabiokung/454463 to your computer and use it in GitHub Desktop.
shell one-liner to include encoding annotations in all ruby files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grep -F "# -*- coding: UTF-8 -*-" -L app/**/*.rb | while read file; do sed -e '1i\ | |
# -*- coding: UTF-8 -*-\n' -i '' $file; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
boa cabelo!