Created
January 24, 2014 22:31
-
-
Save dougnukem/8608131 to your computer and use it in GitHub Desktop.
cleanup actionscript line endings from Flash Professional CS6
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
#!/bin/bash | |
CARRIAGE_RETURN=$'\r' | |
LINE_FEED=$'\n' | |
find . -name "*.as" | xargs grep -l $CARRIAGE_RETURN | xargs -n 1 sed -i "" 's/'$CARRIAGE_RETURN'/\'$'\n/g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment