13 lines
288 B
Bash
Executable File
13 lines
288 B
Bash
Executable File
#!/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 "${@}"
|