I've used 
sed -e 's/the\/original\/file\/stirng/the\/new\/file\/string/g'
/the/location/to/write/the/file   successfully.

James

On Thu, 28 Mar 2002 15:38:54 -0500
Kyle McDonald <[EMAIL PROTECTED]> wrote and hopefully I read
right:

> If the '/' is what is giving you problems then write your sed line
with
> something else. It is setup to use pretty much any character after
the 's'
> 
> 
> This example uses @ instead, I've also seen % used. but pretty
much
> anything will work:
> 
> sed -e 's@a_pattern@anotherpattern'$ENV_VAR'@' myfile.txt
> 
>       -Kyle
> 
> 
> Alan Wilter Sousa da Silva wrote:
> 
> > Hi List,
> > 
> >     I'm trying to:
> > sed -e 's/a_pattern/another_pattern'$A_ENV_VAR'/' myfile.txt
> > 
> > if my $A_ENV_VAR has no special character 'sed' works, however
if it has
> > special character (like a full path name:
A_ENV_VAR=/usr/local/temp) 'sed'
> > doesn't work.
> >     How could I overcome this problem?
> > 
> > Many thanks in advance.
> > 
> > -----------------------
> > Alan Wilter S. da Silva
> > -----------------------
> >  Laborat�rio de F�sica Biol�gica
> >   Instituto de Biof�sica Carlos Chagas Filho
> >    Universidade do Brasil/UFRJ
> >     Rio de Janeiro, Brasil
> > 
> > 
> > 
> > 
> >
------------------------------------------------------------------------
> > 
> > Want to buy your Pack or Services from MandrakeSoft? 
> > Go to http://www.mandrakestore.com
> > 
> 
> 
> -- 
>                                     _
> -------------------------------ooO(
)Ooo-------------------------------
> Kyle J. McDonald                 (o o)         Systems Support
Engineer
> Sun Microsystems Inc.            |||||
> Enterprise Server Products                       
[EMAIL PROTECTED]
> 1 Network Drive BUR03-4630       \\\//          voice:   (781)
442-2184
> Burlington, MA 01803             (o o)            fax:   (781)
442-1542
>
-------------------------------ooO(_)Ooo-------------------------------
> 
> 
> 
> 

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to