#! /bin/sh set -e kind=${1?kind} tail=${2?tail} if cdb -q groups.cdb "$kind:$tail" >/dev/null 2>&1; then echo + else echo "-bad tag $tail" fi