[Chicago-talk] Removing "." from a string?

John Kristoff jtk at depaul.edu
Thu Jan 31 07:31:05 PST 2008


On Thu, 31 Jan 2008 07:13:43 -0800 (PST)
Richard Reina <richard at rushlogistics.com> wrote:

> Does anyone know an easy way to remove "."s from a string like 
> 192.168.2.16
> 
> so I get 192168216?  Substring seems cumbersome and does not account for length between dots.

echo 192.168.2.16 | perl -pe 's/\.//g'

John


More information about the Chicago-talk mailing list