#!/bin/sh if [ x"$1" = x ]; then echo "Usage: $0 " >&2; exit 255 fi dn=$(dirname "$0") ip=$("$dn"/cidr2ip "$1") || exit 1 "$dn"/ip2hex "$ip"