For convenience, I want to make a batch file that opens a terminal, runs SQLite and connects to a database, attaches some other database, and leaves the SQLite terminal open.
For example:
#!/bin/bash
sqlite3 -interactive "/db.sqlite" <<EOS
ATTACH DATABASE "/sb2.sqlite" AS db2;
EOS
The problem is that sqlite3 quits right after executing the command.
Any ideas on how to leave it open?