Skip to content

Instantly share code, notes, and snippets.

@jj1bdx
Forked from nsonnad/tsv2csv.py
Last active August 29, 2015 14:15
Show Gist options
  • Select an option

  • Save jj1bdx/08b2f157661ca24dc173 to your computer and use it in GitHub Desktop.

Select an option

Save jj1bdx/08b2f157661ca24dc173 to your computer and use it in GitHub Desktop.
import sys
import csv
tabin = csv.reader(sys.stdin, dialect=csv.excel_tab)
commaout = csv.writer(sys.stdout, dialect=csv.excel)
for row in tabin:
commaout.writerow(row)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment