> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Halid Faith > Sent: 11 December 2007 16:21
> I want to replace two or more strings in a file in the same > time with sed command. > How do I that ? Halid: You haven't said exactly what you want to do, but something like this should get you started. sed 's/oldstring1/newstring1/g; s/oldstring2/newstring2/g' < infile > outfile _______________________________________________ email@example.com mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"