toki pona ucsur lookup
This commit is contained in:
parent
ad13f0779e
commit
e917e20416
24
toki/toki_ucsur
Executable file
24
toki/toki_ucsur
Executable file
@ -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
|
Loading…
Reference in New Issue
Block a user