#!/bin/bash inputCSV="$1" rm -f csvExport.db printf ".mode csv\n.import $inputCSV export_table" | \ sqlite3 csvExport.db #dbFile=2021_physics.db #tmpDir=/run/user/1000 #tmpDB=$tmpDir/$dbFile #rm -f $tmpDB #./convert_raw2physics.tcl #mv $tmpDB .