aboutsummaryrefslogtreecommitdiff
path: root/csv2rawSqliteDB.sh
blob: b49414daa66434269f4b9d3f8bdf288e799e4d81 (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 applicants_raw" | \
sqlite3 csvExport.db 

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