From owner-freebsd-questions@FreeBSD.ORG Sun Jul 3 14:40:26 2005 Return-Path: X-Original-To: freebsd-questions@FreeBSD.ORG Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6BD1916A41C for ; Sun, 3 Jul 2005 14:40:26 +0000 (GMT) (envelope-from FreeBSD@amadeus.demon.nl) Received: from post-22.mail.nl.demon.net (post-22.mail.nl.demon.net [194.159.73.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2D9A743D46 for ; Sun, 3 Jul 2005 14:40:25 +0000 (GMT) (envelope-from FreeBSD@amadeus.demon.nl) Received: from amadeus.demon.nl ([82.161.18.200]:55610 helo=[10.0.1.1]) by post-22.mail.nl.demon.net with esmtp (Exim 4.43) id 1Dp5dw-0000x4-BJ; Sun, 03 Jul 2005 14:40:24 +0000 In-Reply-To: References: Mime-Version: 1.0 (Apple Message framework v730) X-Priority: 3 (Normal) Message-Id: <6BD492A9-2A38-49C8-B0E2-507F1B9964B2@amadeus.demon.nl> From: FreeBSD questions mailing list Date: Sun, 3 Jul 2005 16:40:20 +0200 To: fbsd_user@a1poweruser.com X-Mailer: Apple Mail (2.730) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: "freebsd-questions@FreeBSD. ORG" Subject: Re: help with sh script X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Jul 2005 14:40:26 -0000 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