Sha256: e26976926e6947c46434aa1a65ab4523e39bbf84f7bd5fd43b9112423068924d

Contents?: true

Size: 366 Bytes

Versions: 6

Compression:

Stored size: 366 Bytes

Contents

help = """
Script to rewrite \n to \r\n
Usage: python3 rewrite.py file-in.txt file-out.txt
file-in.txt will be rewritten to have \n replaced with \r\n.
"""
import sys
if len(sys.argv) != 3:
    print (help)
    sys.exit(1)

src = open (sys.argv[1], "r")
dst = open (sys.argv[2], "w")
for line in src:
    print (line)
    dst.write(line.strip() + "\r\n")
dst.close()

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
libmongocrypt-helper-1.12.0.0.1001 ext/libmongocrypt/libmongocrypt/etc/rewrite.py
libmongocrypt-helper-1.11.0.0.1001 ext/libmongocrypt/libmongocrypt/etc/rewrite.py
libmongocrypt-helper-1.8.0.0.1001 ext/libmongocrypt/libmongocrypt/etc/rewrite.py
libmongocrypt-helper-1.7.4.0.1002 ext/libmongocrypt/libmongocrypt/etc/rewrite.py
libmongocrypt-helper-1.7.4.0.1001 ext/libmongocrypt/libmongocrypt/etc/rewrite.py
libmongocrypt-helper-1.7.4.0.1000 ext/libmongocrypt/libmongocrypt/etc/rewrite.py