Skip to content

Instantly share code, notes, and snippets.

@hp0404
Created July 9, 2022 12:28
Show Gist options
  • Select an option

  • Save hp0404/1cc109206b58db301ca7633c80c6debe to your computer and use it in GitHub Desktop.

Select an option

Save hp0404/1cc109206b58db301ca7633c80c6debe to your computer and use it in GitHub Desktop.
imports csv file into sqlite3 and later exports a subset of the table to a separate csv
# import
sqlite3 -csv phrases.db ".import np-example.csv phrases_table"
# export
sqlite3 -header -csv phrases.db "select * from phrases_table limit 5;" > tracks.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment