#!/bin/bash CSVFILE="$1" dbfile=Blackboard.db rm -f "$dbfile" printf ".mode csv\n.import \"$CSVFILE\" export_table" | \ sqlite3 "$dbfile"