ForgePatch/forge/lfcr.py

8 lines
182 B
Python
Raw Normal View History

2011-08-02 03:54:59 +00:00
#! /usr/bin/env python
import sys, re, os
data = open(sys.argv[1], "rb").read()
newdata = re.sub("\r?\n", "\r\n", data)
f = open(sys.argv[2], "wb")
f.write(newdata)
f.close()