Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Dec 2007 18:01:56 +0100
From:      Firas Kraiem <firas@itsuki.fkraiem.org>
To:        freebsd-questions@freebsd.org
Cc:        Halid Faith <maslak@ihlas.net.tr>
Subject:   Re: How to replace two strings in a file in the same time with sed command ?
Message-ID:  <200712111802.03702.firas@itsuki.fkraiem.org>
In-Reply-To: <002801c83c11$cd434e70$dc96eed5@ihlasnetym>
References:  <002801c83c11$cd434e70$dc96eed5@ihlasnetym>

next in thread | previous in thread | raw e-mail | index | archive | help
--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200712111802.03702.firas>