summary refs log tree commit diff stats
path: root/java/tobedone
diff options
context:
space:
mode:
authorSudipto Mallick <smlckz@bccr>2024-01-10 15:59:05 +0530
committerSudipto Mallick <smlckz@bccr>2024-01-10 15:59:05 +0530
commit87554cf575a4a92f00908a7cccfe6c92db2ef3ef (patch)
treed7e3f25e5c856e999fd98634132db5013055ee9d /java/tobedone
parent5ea0ab6272277357c847ce324582e08cff58d134 (diff)
downloadzadania-87554cf575a4a92f00908a7cccfe6c92db2ef3ef.tar.gz
Incorporate changes in Java Assignment #12
As well as implement a shell script `tobedone` that shows how many
assignments need to be done
Diffstat (limited to 'java/tobedone')
-rw-r--r--java/tobedone7
1 files changed, 7 insertions, 0 deletions
diff --git a/java/tobedone b/java/tobedone
new file mode 100644
index 0000000..dd34705
--- /dev/null
+++ b/java/tobedone
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+{
+    cat state.sql
+    printf '.mode column\n'
+    printf 'SELECT name FROM `assignments` WHERE NOT %s;\n' "${1:-code}"
+} | sqlite3 | tail -n +3