From owner-freebsd-questions@FreeBSD.ORG Tue Aug 19 03:25:43 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 060A0106567A for ; Tue, 19 Aug 2008 03:25:43 +0000 (UTC) (envelope-from Fraser@bacardi.frase.id.au) Received: from bacardi.frase.id.au (203-219-142-174.static.tpgi.com.au [203.219.142.174]) by mx1.freebsd.org (Postfix) with ESMTP id 7E1978FC0A for ; Tue, 19 Aug 2008 03:25:42 +0000 (UTC) (envelope-from Fraser@bacardi.frase.id.au) Received: from bacardi.frase.id.au (localhost [127.0.0.1]) by bacardi.frase.id.au (8.14.2/8.14.2) with ESMTP id m7J3PeTA051096; Tue, 19 Aug 2008 13:25:40 +1000 (EST) (envelope-from Fraser@bacardi.frase.id.au) Received: (from Fraser@localhost) by bacardi.frase.id.au (8.14.2/8.14.2/Submit) id m7J3Pcnv051068; Tue, 19 Aug 2008 13:25:38 +1000 (EST) (envelope-from Fraser) Date: Tue, 19 Aug 2008 13:25:38 +1000 From: Fraser Tweedale To: Jeffrey Goldberg Message-ID: <20080819032537.GE4326@bacardi.frase.id.au> References: <20080819024404.GB4326@bacardi.frase.id.au> <8B61752D0585DE4B43DE2005@Macintosh.local> <20080819031351.GD4326@bacardi.frase.id.au> <3D5BA85E-7C9F-4ED1-9442-A6A7EA8C606D@goldmark.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="EXKGNeO8l0xGFBjy" Content-Disposition: inline In-Reply-To: <3D5BA85E-7C9F-4ED1-9442-A6A7EA8C606D@goldmark.org> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: Paul Schmehl , FreeBSD Questions Subject: Re: How to use dig with an ip list X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Aug 2008 03:25:43 -0000 --EXKGNeO8l0xGFBjy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Aug 18, 2008 at 10:18:07PM -0500, Jeffrey Goldberg wrote: > On Aug 18, 2008, at 10:13 PM, Fraser Tweedale wrote: >=20 > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > #!/bin/sh > > while read LINE > > do > > echo $LINE `dig +short -x $LINE` > > done > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > You'll want to change line four to >=20 > echo "$LINE " `dig +short -x $LINE` >=20 > for a cleaner output. >=20 > -j >=20 >=20 > --=20 > Jeffrey Goldberg http://www.goldmark.org/jeff/ >=20 The original works fine for me in ash. Definitely nothing wrong with yours though. What have I overlooked? frase --EXKGNeO8l0xGFBjy Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkiqPTEACgkQPw/2FZbemTVkZQCfWTXie60HmsBXI+RF1gW8K25d rRUAn1bp8l0WLiCwtjWX8VxOiFJhJW7c =D5No -----END PGP SIGNATURE----- --EXKGNeO8l0xGFBjy--