Created
May 8, 2011 18:06
-
-
Save zen4ever/961544 to your computer and use it in GitHub Desktop.
Cleanup ActionScript lineendings Mac
This file contains 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
for i in $(find . -name '*.as' -exec file '{}' \; | | |
grep 'with CR line terminators' | | |
sed 's/:.*//g'); do | |
echo $i; | |
perl -pi -e 's/\r/\n/g;' "$i"; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment