On Wed, 23 Jan 2019 14:09:45 -0000 (UTC), Grant Edwards wrote:

> > How about this one?
> >
> > echo '198.088.0.01
> > 198.088.062.01' | sed 's/\.0\([0-9][0-9]*\)/.\1/g'
> > 198.88.0.1
> > 198.88.62.1  
> 
> Also no.
> 
> $ echo 198.088.0.001 |   sed 's/\.0\([0-9][0-9]*\)/.\1/g'
> 198.88.0.01

This is like playing Whack-a-Mole with sed ;-)


-- 
Neil Bothwick

I know corn oil comes from corn, where does baby oil come from?

Attachment: pgpVmxUInKN3A.pgp
Description: OpenPGP digital signature

Reply via email to