aboutsummaryrefslogtreecommitdiff
path: root/csv2rawSqliteDB.sh
blob: c678c12b262785dc750e22242f583ca9b0be66da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

inputCSV="$1"
rm -f csvExport.db
printf ".mode csv\n.import $inputCSV export_table" | \
sqlite3 csvExport.db 

#dbFile=2021_physics.db
#tmpDir=/run/user/1000
#tmpDB=$tmpDir/$dbFile
#rm -f $tmpDB
#./convert_raw2physics.tcl
#mv $tmpDB .