Skip to content

Instantly share code, notes, and snippets.

@nickcheng
Last active October 5, 2018 00:50
Show Gist options
  • Save nickcheng/0318cc7b4d2c5c7a9623e7d90a30dda6 to your computer and use it in GitHub Desktop.
Save nickcheng/0318cc7b4d2c5c7a9623e7d90a30dda6 to your computer and use it in GitHub Desktop.

Revisions

  1. nickcheng revised this gist Oct 5, 2018. No changes.
  2. nickcheng revised this gist Sep 11, 2018. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions script.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    # Need csvkit
    # Ref: https://github.com/wireservice/csvkit/issues/245
    csvjson --stream file_1.csv >> combined.jsonl
    csvjson --stream file_2.csv >> combined.jsonl
    in2csv --format ndjson combined.jsonl >> combined.csv
  3. nickcheng created this gist Sep 11, 2018.
    3 changes: 3 additions & 0 deletions script.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    csvjson --stream file_1.csv >> combined.jsonl
    csvjson --stream file_2.csv >> combined.jsonl
    in2csv --format ndjson combined.jsonl >> combined.csv