college/Spring-2023/CS-1011/Relational-DB-Assignment/solve.bash

13 lines
288 B
Bash
Raw Normal View History

#!/usr/bin/env -S nix shell nixpkgs#bash nixpkgs#sqlite --command bash
main() {
local count=1
printf "Question Solutions\n"
printf "==================\n"
while IFS= read -r line; do
printf "%d: %s\n" $((count++)) "${line}"
done < <(sqlite3 db.sqlite3 < ./cmds.sql)
}
main "${@}"