On Tue, Dec 11, 2007 at 06:20:50PM +0200, 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 ?

You can specify the "-e command" parameter multiple times on a line:

$ sed -e 's/foo/fee/g' -e 's/bar/baz/e' filename.txt

-- 
John D. "Trix" Farrar               __\\|//__               Basement.NET
[EMAIL PROTECTED]                   (` o-o ')   http://www.basement.net/
-----------------------------------ooO-(_)-Ooo--------------------------

Attachment: pgp3JSVrhjpOA.pgp
Description: PGP signature

Reply via email to