interger to I P address

Henry Yen henry at AegisInfoSys.com
Wed Aug 27 17:54:47 UTC 2008


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




More information about the NANOG mailing list