Skip to content

Commit

Permalink
Added TSV example to the README
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Willison authored Nov 26, 2017
1 parent 5ee8fd5 commit 957d4f5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ search those directories for CSV files and create tables for each one.

csvs-to-sqlite ~/path/to/directory all-my-csvs.db

## Handling TSV (tab-separated values)

You can use the `-s` option to specify a different delimiter. If you want
to use a tab character you'll need to apply shell escaping like so:

csvs-to-sqlite my-file.tsv my-file.db -s $'\t'

## Refactoring columns into separate lookup tables

Let's say you have a CSV file that looks like this:
Expand Down

0 comments on commit 957d4f5

Please sign in to comment.