diff --git a/toki/toki_ucsur b/toki/toki_ucsur new file mode 100755 index 0000000..ecf08ee --- /dev/null +++ b/toki/toki_ucsur @@ -0,0 +1,24 @@ +#!/bin/sh + +set -e + +test -e toki_common \ + && . ./toki_common \ + || . toki_common + +test -z "$1" \ + && printf 'Usage: %s [nimi...]\n' "$0" >&2 \ + && exit 64 \ + || true # sysexits EX_USAGE + +argv0="$0" +filter=".data.$1.ucsur" + +if test -n "$2" + then while test -n "$2" + do filter="$filter, .data.$2.ucsur" \ + && shift + done +fi + +jq -r "$filter" <$JASIMA