21 lines
295 B
Bash
Executable File
21 lines
295 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
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
|
|
|
|
toki_lipunimi | jq -r "$filter"
|