Date: Tue, 13 May 2008 10:05:15 -0500 From: Erik Osterholm <freebsd-lists-erik@erikosterholm.org> To: Johan Dowdy <jdowdy@ncircle.com> Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: Unexepcted behavior from read and cat Message-ID: <20080513150515.GA71979@aleph.cepheid.org> In-Reply-To: <C44DE718.994B3%jdowdy@ncircle.com> References: <C1DFB4E8F62B503C9A829107@utd65257.utdallas.edu> <C44DE718.994B3%jdowdy@ncircle.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, May 12, 2008 at 12:22:48PM -0700, Johan Dowdy wrote: > For loops are your friend. > > I'd do something like: > > for i in `cat iplist` > do dig +short -x $I > done Even better: while read i do dig +short -x $i done < iplist See the Useless Use of Cat Award for more details. Erik
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080513150515.GA71979>