From owner-freebsd-questions@FreeBSD.ORG Wed Nov 10 20:16:26 2004 Return-Path: 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 74E7B16A4CE for ; Wed, 10 Nov 2004 20:16:26 +0000 (GMT) Received: from smtp-out.hotpop.com (smtp-out.hotpop.com [38.113.3.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id 43A0543D3F for ; Wed, 10 Nov 2004 20:16:26 +0000 (GMT) (envelope-from personrp@hotpop.com) Received: from hotpop.com (kubrick.hotpop.com [38.113.3.103]) by smtp-out.hotpop.com (Postfix) with SMTP id DD3149B4EAF for ; Wed, 10 Nov 2004 20:16:18 +0000 (UTC) Received: from 110-ccbh-131.ccbh.upmc.edu (110-ccbh-131.ccbh.upmc.edu [128.147.110.131]) by smtp-3.hotpop.com (Postfix) with ESMTP id 477D011D1BFA; Wed, 10 Nov 2004 20:16:16 +0000 (UTC) From: Rod Person Organization: Open Source Beef To: mailing lists at MacTutor Date: Wed, 10 Nov 2004 15:15:49 +0000 User-Agent: KMail/1.7 References: <200411101443.01977.personrp@hotpop.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200411101515.49950.personrp@hotpop.com> X-HotPOP: ----------------------------------------------- Sent By HotPOP.com FREE Email Get your FREE POP email at www.HotPOP.com ----------------------------------------------- cc: freebsd-questions@freebsd.org Subject: Re: Sed Help..... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: personrp@hotpop.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Nov 2004 20:16:26 -0000 On Wednesday 10 November 2004 7:58 pm, mailing lists at MacTutor wrote: > Rod, > > Take a look at what the shell replacement is actually doing. If you > were to write the line manually it would look like this: > > sed -e 's/\/usr\X11R6\/bin\/xdm/\/usr\/local\/bin\/kdm/g' ... > > Right? > > But the shell doesn't escape the path separators (slashes). You need to > escape them yourself in the variable assignments. Like this, > > KDMLINE='\/usr\/local\/bin\/kdm' > &c > > And if there is only one occurrence per line, then you don't need the > 'g' modifier. > > Hope that helps. > > Alex Thanks Alex and Miguel... I hate when you look at something for hours and it something you know you should have known! I had at one point had the variables with double qoute and even tried to escape the qoutes!! Thanks again Rod...