Mercurial > hg > python
view csvtotsv.py @ 17:6c9e371b0325
doesn't break, what's there is good, but stuck part-way in 10a
author | Henry S. Thompson <ht@inf.ed.ac.uk> |
---|---|
date | Wed, 25 Mar 2020 19:21:38 +0000 |
parents | e07789816ca5 |
children |
line wrap: on
line source
#!/usr/bin/python3 import csv,sys with open(sys.argv[1],newline='') as f: r=csv.reader(f) for l in r: print('\t'.join(s.replace("\n","") for s in l))