From owner-freebsd-questions Tue Dec 3 2:34: 5 2002 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 4A2A237B401 for ; Tue, 3 Dec 2002 02:34:04 -0800 (PST) Received: from bellavista.cz (mail.bellavista.cz [62.168.44.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id E025443EC5 for ; Tue, 3 Dec 2002 02:34:02 -0800 (PST) (envelope-from neuhauser@bellavista.cz) Received: from lilith.bellavista.cz ([10.1.0.1]) by bellavista.cz (8.9.3/8.9.8) with ESMTP id LAA03933; Tue, 3 Dec 2002 11:33:49 +0100 Received: from freepuppy.bellavista.cz (freepuppy.bellavista.cz [10.0.0.10]) by lilith.bellavista.cz (Postfix) with ESMTP id 2E842246; Tue, 3 Dec 2002 12:32:12 +0100 (CET) Received: by freepuppy.bellavista.cz (Postfix, from userid 1001) id D7DEB2FDAF5; Tue, 3 Dec 2002 11:33:46 +0100 (CET) Date: Tue, 3 Dec 2002 11:33:46 +0100 From: Roman Neuhauser To: Paul Everlund Cc: Malik =?iso-8859-2?Q?B=FClent?= , questions@freebsd.org Subject: Re: is there a "replace command" ? Message-ID: <20021203103346.GG56031@freepuppy.bellavista.cz> Mail-Followup-To: Paul Everlund , Malik =?iso-8859-2?Q?B=FClent?= , questions@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG # tdv94ped@cs.umu.se / 2002-12-03 11:13:39 +0100: > On Tue, 3 Dec 2002, Malik Bülent wrote: > > But my expression has "/" that is there is a "/" in a expression > > What shall i do ? > > my expression is "new: 11" I want to change "new: 11" with "new/11" > > > > thanks > > # echo "new: 11" | sed s/new\:\ 11/new\\/11/ you don't have to use slashes for the delimiters. see sed(1). roman@freepuppy ~ 1003:0 > echo "new: 11" | sed 's,: ,/,' new/11 roman@freepuppy ~ 1004:0 > echo "new: 11" | sed 's:\: :/:' new/11 roman@freepuppy ~ 1005:0 > echo "new: 11" | sed 's-: -/-' new/11 -- If you cc me or remove the list(s) completely I'll most likely ignore your message. see http://www.eyrie.org./~eagle/faqs/questions.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message