view csvtotsv.py @ 35:447b9346453b

another null case?
author Henry Thompson <ht@markup.co.uk>
date Thu, 29 Jul 2021 12:54:26 +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))