Created
April 23, 2016 13:46
-
-
Save jensens/43965a2d25c26dd691fd549ba492fd48 to your computer and use it in GitHub Desktop.
Add UTF8 headers to python files if not already in place
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
find . -name "*.py"|while read fn;do head -n1 "$fn"|grep -qv "^# \-\*\- coding" && sed -i "1i # -*- coding: utf-8 -*-" $fn;done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment