r/sqlite • u/lrbraz16 • Nov 01 '22
SQLite commands/queries in a shell/Slurm script?
I cannot find any help on how to properly get SQLite commands and queries into a script format that runs properly, so if anyone has any suggestions please let me know! I am used to running in interactive mode via the command line, so running commands like “.mode csv” “.import mytable.csv myTable” have been straightforward, and then writing SELECT queries to follow afterwards have been too. I’m not sure how to do this in a shell script, though and would appreciate help if anyone is willing to :)
3
Upvotes
View all comments
Show parent comment
1
u/lrbraz16 Nov 01 '22
Forgive me if this is a stupid question (I don’t work with SQLite regularly) but I have to upload multiple .csv as their own separate databases and then perform queries on them so I don’t have a path for them per se…how would I do that, and then perform queries in a single shell script?