[107171] in North American Network Operators' Group

home help back first fref pref prev next nref lref last post

Re: interger to I P address

daemon@ATHENA.MIT.EDU (Henry Yen)
Wed Aug 27 13:54:53 2008

Date: Wed, 27 Aug 2008 13:54:47 -0400
From: Henry Yen <henry@AegisInfoSys.com>
To: nanog@nanog.org
Mail-Followup-To: nanog@nanog.org
In-Reply-To: <20080827170047.40951BBB84@rebma.osc.edu>;
	from chartley@oar.net on Wed, Aug 27, 2008 at 13:00:41PM -0400
Errors-To: nanog-bounces@nanog.org

On Wed, Aug 27, 2008 at 13:00:41PM -0400, chartley@oar.net wrote:
> Sorry to be continuing this thread, but I find a certain kind of elegance in
> bash which isn't actually there, but helps me sleep at night.

the (well, one of many, probably) REXX way:

  PARSE VALUE D2X(ARG(1)) WITH a 3 b 5 c 7 d .
  SAY X2D(a)"."X2D(b)"."X2D(c)"."X2D(d)

-- 
Henry Yen                                       Aegis Information Systems, Inc.
Senior Systems Programmer                       Hicksville, New York


home help back first fref pref prev next nref lref last post