Created
August 18, 2015 16:41
-
-
Save rickardlindberg/73ff3a5a43ef145b0e69 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/python | |
import sys | |
def read_content(path): | |
f = open(path, "r") | |
res = f.read() | |
f.close() | |
return res | |
def contains_crlf(text): | |
return "\r\n" in text | |
for path in sys.argv[1:]: | |
if contains_crlf(read_content(path)): | |
print path |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment