view csvtotsv.py @ 60:bc1acb1416ab

working on fixing gnus home foulup, see /disk/scratch/{mail,gnus}
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Wed, 13 Dec 2023 17:31:28 +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))