Mercurial > hg > python
view csvtotsv.py @ 48:99bfff1538c6
as downloaded, python2.7...
author | Henry S. Thompson <ht@inf.ed.ac.uk> |
---|---|
date | Sun, 31 Jul 2022 19:01:54 +0100 |
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))