1 2 3 4 5 6 7
#!/bin/sh { cat state.sql printf '.mode column\n' printf 'SELECT rowid, name FROM `assignments` WHERE NOT %s;\n' "${1:-code}" } | sqlite3 | tail -n +3