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