Date: Mon, 17 Sep 2007 13:49:23 +0200
Reply-To: SAS-L List <firstname.lastname@example.org>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Robert Bardos <bardos2@ANSYS.CH>
Subject: Re: sed command unix
Content-Type: text/plain; charset="iso-8859-1"
> Von: V. Bourcier
> Gesendet: Montag, 17. September 2007 13:31
> I'm taking a small example to illustrate my problem:
> I have a test.txt file which contains the following line:
> toto titi toto toto toto
> I want to replace toto to tata
> I've tried diverse notations such as this one but without success:
> x "sed 's/toto/tata/g' /myunixpath/test.txt > /myunixpath/test2.txt";
> Any idea?
I'm currently looking at a bunch of examples that all start with
sed -e 's/from/to/g'
Found them once by doing a google search for
"sed by example" site:www.ibm.com