Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/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
You can’t perform that action at this time.