Date: Sun, 28 Sep 2008 00:04:13 -0400 From: "Josh Carroll" <josh.carroll@gmail.com> To: "Len Conrad" <LConrad@go2france.com> Cc: freebsd-questions@freebsd.org Subject: Re: help with AWk Message-ID: <8cb6106e0809272104s4306368awfdeb1ddf4a5cd7ca@mail.gmail.com> In-Reply-To: <200809280458484.SM01744@TX2.Go2France.com> References: <200809280458484.SM01744@TX2.Go2France.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> dig +short -x 1.2.3.4 | awk '{if ( $0 == "" ) {print "PTR_NUL" } else {print $0 } }' If you run the dig command without the pipe, it should give you an idea of why what you're trying is not working. > dig +short -x 1.2.3.4 | wc 0 0 0 Josh
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8cb6106e0809272104s4306368awfdeb1ddf4a5cd7ca>