comparison csvtotsv.py @ 2:e07789816ca5

adding more python files from lib/python on origen
author Henry Thompson <ht@markup.co.uk>
date Mon, 09 Mar 2020 16:48:09 +0000
parents
children
comparison
equal deleted inserted replaced
1:0a3abe59e364 2:e07789816ca5
1 #!/usr/bin/python3
2 import csv,sys
3 with open(sys.argv[1],newline='') as f:
4 r=csv.reader(f)
5 for l in r:
6 print('\t'.join(s.replace("\n","") for s in l))