From: ts Date: 2003-12-24T00:57:58+09:00 Subject: Re: need help with unpacking ip address >>>>> "M" == Mike Wilson writes: M> 10.159.23.185, the right answer is "00001010.10011111.00010111.10111001". one way to do it svg% ruby -e 'p ("%08b." * 4 % "10.159.23.185".split(/\./)).chop' "00001010.10011111.00010111.10111001" svg% Guy Decoux