def win2unix(fn_src, fn_dest):
    '''
    Sample 2: replace windows line endings (0D 0A) with unix EOL (0A)
    '''
    filedata = read_file(fn_src, binmode=1)
    filedata = filedata.replace('\x0d\x0a', '\x0a')
    write_file(fn_dest, filedata, binmode=1)

    Sample 2: replace windows line endings (0D 0A) with unix EOL (0A)
    
recipes/Python/577199_File_readwrite_routines/recipe-577199.py