Date: Mon, 17 Sep 2007 13:49:23 +0200
Reply-To: SAS-L List <sas-l@listserv.uga.edu>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Robert Bardos <bardos2@ANSYS.CH>
Subject: Re: sed command unix
In-Reply-To: <200709171131.l8HAkiaP025597@malibu.cc.uga.edu>
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?
>
>
Veronique,
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
Robert
|