title: Run command-line SQLite 3 query and exit
body: <p>We can use the <code>-cmd</code> option with <code>sqlite3</code> to run a query, but then <code>sqlite3</code> opens the database and waits in there for interactive input. How can we run a query on <code>sqlite3</code> from the command line and exit?</p>