North American Network Operators Group

Date Prev | Date Next | Date Index | Thread Index | Author Index | Historical

Re: interger to I P address

  • From: Henry Yen
  • Date: Wed Aug 27 13:54:56 2008

On Wed, Aug 27, 2008 at 13:00:41PM -0400, [email protected] 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