aboutsummaryrefslogtreecommitdiff
path: root/regenGradescopeDB.sh
blob: e7273ea2dc303d25715674331a9da68fe4158984 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash

CSVFILE="$1"
dbfile=Gradescope.db
rm -f "$dbfile"

printf ".mode csv\n.import \"$CSVFILE\" export_table" | \
	sqlite3 "$dbfile"