view csvtotsv.py @ 59:c22f83e049a9 simple

check0 works for nono10, but is broken in that col 3 w/o the row 7 hit would find the row 3 hit as satisfying the last (2nd) run, which isn't _necessarily_ correct
author Henry Thompson <ht@markup.co.uk>
date Sat, 03 Jun 2023 22:11:12 +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))