From owner-freebsd-questions@FreeBSD.ORG Sun Sep 28 04:04:14 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 143A81065686 for ; Sun, 28 Sep 2008 04:04:14 +0000 (UTC) (envelope-from josh.carroll@gmail.com) Received: from mail-gx0-f17.google.com (mail-gx0-f17.google.com [209.85.217.17]) by mx1.freebsd.org (Postfix) with ESMTP id C010F8FC0C for ; Sun, 28 Sep 2008 04:04:13 +0000 (UTC) (envelope-from josh.carroll@gmail.com) Received: by gxk10 with SMTP id 10so9453679gxk.19 for ; Sat, 27 Sep 2008 21:04:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=thSYNoHUMiMJ1tTZNAgcKzCpOqv1QfQNGFBiPf8SgDE=; b=C/RPqGfQNO0jLt8+3dYTj2oh6hoK6vKwOzYBXttFFwVj9unUmG3wdL/C9hLmDXrrGl i/pYKkv30agxI7F4wzDtY6hMPLLiigPYv+VrABHcIXTakZ9Bx+ec2rdQECCGkX8QLCem rhuLSOUctYduLKB0IW+mKRLvUvHDVSJ3LyyTg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:to:subject:cc:in-reply-to :mime-version:content-type:content-transfer-encoding :content-disposition:references; b=kCZUpcTgcU2FctI55bK+iOtyy5RIRtoEKcC3IWBP0NnzBQnaditwCjCWwJi3aNOBOB +LKEn4ew15WiFuV5OI7fAJkCyiPIDFe3+xDxRPLGFc5R/Ia9M6f6L6Z0VZbfHcASSdMi PTyfnA6IZIaHhx2dcKhw7Q3hXT5AYkbLzndqA= Received: by 10.150.219.16 with SMTP id r16mr5171397ybg.21.1222574653103; Sat, 27 Sep 2008 21:04:13 -0700 (PDT) Received: by 10.151.11.21 with HTTP; Sat, 27 Sep 2008 21:04:13 -0700 (PDT) Message-ID: <8cb6106e0809272104s4306368awfdeb1ddf4a5cd7ca@mail.gmail.com> Date: Sun, 28 Sep 2008 00:04:13 -0400 From: "Josh Carroll" To: "Len Conrad" In-Reply-To: <200809280458484.SM01744@TX2.Go2France.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200809280458484.SM01744@TX2.Go2France.com> Cc: freebsd-questions@freebsd.org Subject: Re: help with AWk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: josh.carroll@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Sep 2008 04:04:14 -0000 > 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