From owner-freebsd-questions@FreeBSD.ORG Tue Dec 11 17:02:08 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A856F16A476 for ; Tue, 11 Dec 2007 17:02:08 +0000 (UTC) (envelope-from firas@itsuki.fkraiem.org) Received: from itsuki.fkraiem.org (itsuki.fkraiem.org [213.251.134.76]) by mx1.freebsd.org (Postfix) with ESMTP id 5762813C474 for ; Tue, 11 Dec 2007 17:02:08 +0000 (UTC) (envelope-from firas@itsuki.fkraiem.org) Received: from [192.168.1.4] (firas@ABordeaux-256-1-89-206.w90-11.abo.wanadoo.fr [90.11.208.206]) (authenticated bits=0) by itsuki.fkraiem.org (8.13.8/8.13.8) with ESMTP id lBBH24Ci043073 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 11 Dec 2007 18:02:04 +0100 (CET) (envelope-from firas@itsuki.fkraiem.org) From: Firas Kraiem To: freebsd-questions@freebsd.org Date: Tue, 11 Dec 2007 18:01:56 +0100 User-Agent: KMail/1.9.7 References: <002801c83c11$cd434e70$dc96eed5@ihlasnetym> In-Reply-To: <002801c83c11$cd434e70$dc96eed5@ihlasnetym> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2230479.qtKPtAAyxA"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200712111802.03702.firas@itsuki.fkraiem.org> Cc: Halid Faith Subject: Re: How to replace two strings in a file in the same time with sed command ? 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: Tue, 11 Dec 2007 17:02:08 -0000 --nextPart2230479.qtKPtAAyxA Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Tuesday 11 December 2007 17:20:50 Halid Faith wrote: > I want to replace two or more strings in a file in the same time with > sed command. How do I that ? firas@itsuki ~ % echo "foobar" | sed 's/foo/goo/;s/bar/baz/' goobaz =2D-=20 () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments GnuPG public key: http://itsuki.fkraiem.org/gpgkey --nextPart2230479.qtKPtAAyxA Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.7 (GNU/Linux) iD8DBQBHXsKL/+Gk845KJlARAt9lAJ4uUEi18uSR/VO8NQEEyqVCpXfJOgCffQzk u52filtQEftCfnKtfAxPN80= =F3Kp -----END PGP SIGNATURE----- --nextPart2230479.qtKPtAAyxA--