nanog mailing list archives

Re: interger to I P address


From: Henry Yen <henry () AegisInfoSys com>
Date: Wed, 27 Aug 2008 13:54:47 -0400

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


Current thread: