KIEKjes Upload System
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
307 B

set -e
usage() {
echo "usage: $0 [-h] [NAME...]" >&2
while getopts h opt; do
case "$opt" in
h) usage; exit 0;;
?) usage; exit 255;;
shift $(($OPTIND-1))
select=".[\"$1\"]"; shift
for arg; do
select="$select, .[\"$arg\"] // \"\""
exec jq -M -r "$select"