From owner-freebsd-questions Tue Jun 26 13:40:19 2001 Delivered-To: freebsd-questions@freebsd.org Received: from area51.v-wave.com (area51.v-wave.com [24.108.173.252]) by hub.freebsd.org (Postfix) with SMTP id ED1F837B405 for ; Tue, 26 Jun 2001 13:40:16 -0700 (PDT) (envelope-from flatline@area51.v-wave.com) Received: (qmail 2251 invoked by uid 1001); 26 Jun 2001 20:40:16 -0000 Date: Tue, 26 Jun 2001 14:40:16 -0600 From: Chris Wasser To: Daniel Frazier Cc: questions@FreeBSD.ORG Subject: Re: dns tool for reverse lookup of network range needed Message-ID: <20010626144016.A555@skunkworks.arpa.mil> References: <3B38EED3.F5E33696@magpage.com> <3B38EFE1.D7429B57@magpage.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3B38EFE1.D7429B57@magpage.com>; from dfrazier@magpage.com on Tue, Jun 26, 2001 at 04:26:09PM -0400 X-Operating-System: FreeBSD 4.2-STABLE i386 X-Subliminal: On the count of 3, you will bark like a dog. 1.. 2.. 3.. Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue 26 Jun 2001, Daniel Frazier wrote: > eh, you can take out the "echo $x" to make the output a bit more > readable. > > $ x=0; while [ $x -lt 255 ]; do host 216.155.24.$x; x=`echo "$x + 1" > | bc`; done You could also use expr, saving on the pipe to bc(1): $ x=0; while [ $x -lt 255 ]; do host 216.155.24.$x; x=`expr $x '+' 1`; done My two cents... - Chris To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message