Date: Tue, 19 Aug 2008 13:25:38 +1000 From: Fraser Tweedale <frase@frase.id.au> To: Jeffrey Goldberg <jeffrey@goldmark.org> Cc: Paul Schmehl <pauls@utdallas.edu>, FreeBSD Questions <questions@freebsd.org> Subject: Re: How to use dig with an ip list Message-ID: <20080819032537.GE4326@bacardi.frase.id.au> In-Reply-To: <3D5BA85E-7C9F-4ED1-9442-A6A7EA8C606D@goldmark.org> References: <F00086DB609A849EAB40A058@Macintosh.local> <20080819024404.GB4326@bacardi.frase.id.au> <8B61752D0585DE4B43DE2005@Macintosh.local> <20080819031351.GD4326@bacardi.frase.id.au> <3D5BA85E-7C9F-4ED1-9442-A6A7EA8C606D@goldmark.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080819032537.GE4326>