initial commit

This commit is contained in:
2025-02-07 19:15:08 -05:00
commit c42ae1e566

14
csv-reader.py Normal file
View File

@@ -0,0 +1,14 @@
import sys
import csv
def sanitize(text):
return text.replace("~", "~!").replace("\t", "~t").replace("\r", "~r").replace("\n", "~n")
reader = csv.reader(sys.stdin)
for inrow in reader:
outrow = []
for text in inrow:
outrow.append(sanitize(text))
print("\t".join(outrow))
#jl