LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (September 2007, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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


Back to: Top of message | Previous page | Main SAS-L page