Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 May 2008 12:22:48 -0700
From:      Johan  Dowdy <jdowdy@ncircle.com>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Unexepcted behavior from read and cat
Message-ID:  <C44DE718.994B3%jdowdy@ncircle.com>
In-Reply-To: <C1DFB4E8F62B503C9A829107@utd65257.utdallas.edu>

next in thread | previous in thread | raw e-mail | index | archive | help


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" <pauls@utdallas.edu> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C44DE718.994B3%jdowdy>