#!/bin/sh awk -f - $* < "/dev/stderr" exit(1) } if (ipaddr > start && ipaddr < end) { print "ipaddr inside range" > "/dev/stderr" exit(1) } print "START="int2ip(start) print "END="int2ip(end) } EOF