Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Jun 2001 14:40:16 -0600
From:      Chris Wasser <cwasser@v-wave.com>
To:        Daniel Frazier <dfrazier@magpage.com>
Cc:        questions@FreeBSD.ORG
Subject:   Re: dns tool for reverse lookup of network range needed
Message-ID:  <20010626144016.A555@skunkworks.arpa.mil>
In-Reply-To: <3B38EFE1.D7429B57@magpage.com>; from dfrazier@magpage.com on Tue, Jun 26, 2001 at 04:26:09PM -0400
References:  <NFBBKAEAALGGGFKINBLAIEENCAAA.peter@sysadmin-inc.com> <3B38EED3.F5E33696@magpage.com> <3B38EFE1.D7429B57@magpage.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010626144016.A555>