Hi Kyle,
Thank you for your help.  I got a solution by myself too in this way,
using  �|� instead of �/�.

On Thu, 28 Mar 2002, Kyle McDonald wrote:

> 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
> >
>
>
>

-- 
-----------------------
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

Reply via email to