Skip to content

Instantly share code, notes, and snippets.

@cschlyter
Created December 10, 2013 16:33
Show Gist options
  • Save cschlyter/7893578 to your computer and use it in GitHub Desktop.
Save cschlyter/7893578 to your computer and use it in GitHub Desktop.
[python] Convert a semicolon separated file to csv
import sys
import csv
semicolonin = csv.reader(sys.stdin, delimiter=';')
commaout = csv.writer(sys.stdout, delimiter=',')
for row in semicolonin:
commaout.writerow(row)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment