Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 18 lines (12 sloc) 242 Bytes
#!/usr/bin/env python
# Reprint a file (get the line endings right)
import sys
f=open(sys.argv[1])
s=f.read(4096)
while s != '':
s=s.replace('\r', '\n')
s=s.replace('\n\n', '\n')
sys.stdout.write(s)
s=f.read(4096)
f.close()
print ''
Jump to Line
Something went wrong with that request. Please try again.