1 2 3 4 5 6 7 8 9 10
#!/bin/bash CSVFILE="$1" dbfile=Blackboard.db rm -f "$dbfile" printf ".mode csv\n.import \"$CSVFILE\" export_table" | \ sqlite3 "$dbfile"