From owner-freebsd-questions@FreeBSD.ORG Mon May 12 19:08:06 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 CEBC71065677 for ; Mon, 12 May 2008 19:08:06 +0000 (UTC) (envelope-from pauls@utdallas.edu) Received: from smtp3.utdallas.edu (smtp3.utdallas.edu [129.110.20.110]) by mx1.freebsd.org (Postfix) with ESMTP id B36978FC14 for ; Mon, 12 May 2008 19:08:06 +0000 (UTC) (envelope-from pauls@utdallas.edu) Received: from utd65257.utdallas.edu (utd65257.utdallas.edu [129.110.3.28]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp3.utdallas.edu (Postfix) with ESMTPSA id 69A5023DF2 for ; Mon, 12 May 2008 14:08:06 -0500 (CDT) Date: Mon, 12 May 2008 14:08:06 -0500 From: Paul Schmehl To: FreeBSD Questions Message-ID: <5908E3FC770922A748B2301B@utd65257.utdallas.edu> In-Reply-To: References: X-Mailer: Mulberry/4.0.8 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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:08:06 -0000 --On Monday, May 12, 2008 13:59:47 -0500 Paul Schmehl wrote: > > Sure, I can edit the file and prepend +short -x to each line, but by then I > might as well just do them individually. > > What am I missing? Never mind. This worked. (read line; dig +short -x `echo $line`; while read line; do dig +short -x `echo $line`; done) < iplist -- Paul Schmehl (pauls@utdallas.edu) Senior Information Security Analyst The University of Texas at Dallas http://www.utdallas.edu/ir/security/