From owner-freebsd-questions@FreeBSD.ORG Mon May 12 19:22:51 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 270DA1065673 for ; Mon, 12 May 2008 19:22:51 +0000 (UTC) (envelope-from jdowdy@ncircle.com) Received: from mail.ncircle.com (mail.ncircle.com [64.84.9.150]) by mx1.freebsd.org (Postfix) with ESMTP id 11FCF8FC18 for ; Mon, 12 May 2008 19:22:50 +0000 (UTC) (envelope-from jdowdy@ncircle.com) Received: from CORP-MAIL.ad.ncircle.com (corpmail-01.ncircle.com [192.168.75.90]) by mail.ncircle.com (8.14.2/8.14.2) with ESMTP id m4CJMnpW078263 for ; Mon, 12 May 2008 12:22:49 -0700 (PDT) (envelope-from jdowdy@ncircle.com) Received: from 192.168.40.181 ([192.168.40.181]) by CORP-MAIL.ad.ncircle.com ([192.168.75.94]) with Microsoft Exchange Server HTTP-DAV ; Mon, 12 May 2008 19:22:50 +0000 User-Agent: Microsoft-Entourage/11.4.0.080122 Date: Mon, 12 May 2008 12:22:48 -0700 From: Johan Dowdy To: FreeBSD Questions Message-ID: Thread-Topic: Unexepcted behavior from read and cat Thread-Index: Aci0ZY/1zkLjuiBYEd2/hwAKla5AwA== In-Reply-To: Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-Spam-Score: -3.892 () ALL_TRUSTED,AWL,BAYES_00 X-Scanned-By: MIMEDefang 2.63 on 64.84.9.150 Subject: Re: Unexepcted behavior from read and cat 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: Mon, 12 May 2008 19:22:51 -0000 For loops are your friend. I'd do something like: for i in `cat iplist` do dig +short -x $I done -J On 5/12/08 11:59 AM, "Paul Schmehl" wrote: > dig +short -x `cat iplist` -- Johan Dowdy - CISSP Senior Systems Administrator nCircle Network Security 415.318.2880 "Any sufficiently advanced technology is indistinguishable from magic." -- Arthur C. Clarke