##################################
#                                #
# Last modified 11/15/2014       # 
#                                #
# Georgi Marinov                 #
#                                # 
##################################

import sys
import string
import math
from commoncode import *

def run():

    if len(sys.argv) < 2:
        print 'usage: python %s input outputfilename' % sys.argv[0]

        sys.exit(1)
    
    input = sys.argv[1]
    outfilename = sys.argv[2]

    outfile = open(outfilename, 'w')

    linelist = open(input)
    for line in linelist:
        outfile.write(line.replace('\r','\n'))

    outfile.close()
   
run()
