Last active
September 3, 2018 03:55
-
-
Save mattak/e7e803d3153ef289f15da8d646a52e04 to your computer and use it in GitHub Desktop.
Replace CR line feeding file to linux style line feeding file on unity project
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/sh | |
for f in $(find Assets -type f -name '*.cs' | grep -v Modules); | |
do | |
WIN_LINE_FEED=$(nkf --guess $f | grep "CR") | |
if [ "$WIN_LINE_FEED" != "" ]; then | |
echo $f | |
nkf -Lu --overwrite $f | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment