Created
April 23, 2013 07:10
-
-
Save unfo/5441434 to your computer and use it in GitHub Desktop.
Naive CR/CRLF checker script
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
#!/bin/bash | |
grep -r $'\r' -l $1 > /dev/null | |
if [ $? -eq 0 ]; then | |
echo "Windows" | |
else | |
echo "Linux" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment