Date: Sun, 3 Jul 2005 16:40:20 +0200 From: FreeBSD questions mailing list <FreeBSD@amadeus.demon.nl> To: fbsd_user@a1poweruser.com Cc: "freebsd-questions@FreeBSD. ORG" <freebsd-questions@FreeBSD.ORG> Subject: Re: help with sh script Message-ID: <6BD492A9-2A38-49C8-B0E2-507F1B9964B2@amadeus.demon.nl> In-Reply-To: <MIEPLLIBMLEEABPDBIEGOEBEHIAA.fbsd_user@a1poweruser.com> References: <MIEPLLIBMLEEABPDBIEGOEBEHIAA.fbsd_user@a1poweruser.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 03 jul 2005, at 15:39, fbsd_user wrote: > What is the sh coding to strip the periods from a IP address?? > > > raw_ip='10.0.10.5' this is starting > num_ip='100105' and this is what I need to convert to. > > > Hi, many ways, here's one: printf '10.0.10.5' | sed 's/\.//g' Arno
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6BD492A9-2A38-49C8-B0E2-507F1B9964B2>