How to replace two strings in a file in the same time with sed
firas at itsuki.fkraiem.org
Tue Dec 11 09:02:08 PST 2007
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 at itsuki ~ % echo "foobar" | sed 's/foo/goo/;s/bar/baz/'
() ascii ribbon campaign - against html e-mail
/\ www.asciiribbon.org - against proprietary attachments
GnuPG public key: http://itsuki.fkraiem.org/gpgkey
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20071211/7ce37ab5/attachment.pgp
More information about the freebsd-questions