Skip to content

Instantly share code, notes, and snippets.

@zen4ever
Created May 8, 2011 18:06
Show Gist options
  • Save zen4ever/961544 to your computer and use it in GitHub Desktop.
Save zen4ever/961544 to your computer and use it in GitHub Desktop.
Cleanup ActionScript lineendings Mac
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