Skip to content

Instantly share code, notes, and snippets.

@rickardlindberg
Created August 18, 2015 16:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rickardlindberg/73ff3a5a43ef145b0e69 to your computer and use it in GitHub Desktop.
Save rickardlindberg/73ff3a5a43ef145b0e69 to your computer and use it in GitHub Desktop.
#!/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