From owner-freebsd-questions Tue Jun 26 13:47:58 2001 Delivered-To: freebsd-questions@freebsd.org Received: from trinity.magpage.com (trinity.magpage.com [216.155.0.8]) by hub.freebsd.org (Postfix) with ESMTP id 1767937B405 for ; Tue, 26 Jun 2001 13:47:55 -0700 (PDT) (envelope-from dfrazier@magpage.com) Received: from magpage.com (dfrazier@poomba.magpage.com [216.155.24.136]) by trinity.magpage.com (8.11.3/8.11.3) with ESMTP id f5QKlr710657; Tue, 26 Jun 2001 16:47:53 -0400 (EDT) Message-ID: <3B38F4F9.15F2F925@magpage.com> Date: Tue, 26 Jun 2001 16:47:53 -0400 From: Daniel Frazier X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Peter Brezny Cc: freebsd-questions@freebsd.org Subject: Re: dns tool for reverse lookup of network range needed References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-RRT-Status: UNKNOWN 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 Peter Brezny wrote: > > Daniel, > > Thanks alot for the great command line. > > Unfortunately, I don't have a programming background and i'm a bit slow to > catch on. > > however when i put > > x=0; while [ $x -lt 255 ]; do echo $x; host 216.155.24.$x; x=`echo "$x + 1" > | bc`; done > > onto a command line, i get an error. > > I tried > sh $x=0; while [ $x -lt 255 ]; do echo $x; host 216.155.24.$x; x=`echo "$x + > 1" | bc`; done > > as well. > > Due to my lack of programming/ scripting knowledge, it would really help if > you had the time to spell this one out for me... > you could try putting these commands in a file. open a new file (I'll call it reverse.sh) and insert the following... #!/bin/sh x=0 while [ $x -lt 255 ] do host 216.155.24.$x x=`echo "$x + 1" | bc` done ...then run the file by doing... $ sh reverse.sh that should do it. for future reference, remember to cc the list so that anyone else who is interested can read it... -- ---------------------------------------------------------------------- Daniel Frazier Tel: 302-239-5900 Ext. 231 Systems Administrator Fax: 302-239-3909 MAGPAGE, We Power the Internet WWW: http://www.magpage.com/ "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." - Benjamin Franklin, Historical Review of Pennsylvania, 1759. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message