Skip to content

Instantly share code, notes, and snippets.

@netj
Created August 16, 2010 14:38
Show Gist options
  • Save netj/527042 to your computer and use it in GitHub Desktop.
Save netj/527042 to your computer and use it in GitHub Desktop.

Revisions

  1. netj revised this gist Aug 16, 2010. 2 changed files with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions csv2tsv.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    #!/usr/bin/env python
    import sys,csv
    for row in csv.reader(sys.stdin):
    print "\t".join(row)
    File renamed without changes.
  2. netj created this gist Aug 16, 2010.
    1 change: 1 addition & 0 deletions csv2tsv
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    python -c "`printf '%s\n' 'import sys,csv' 'for row in csv.reader(sys.stdin):' ' print "\t".join(row)'`"