Re: perl or sed s/// problem

Kezdőlap
Csatolmányok:
Üzenet email-ben
+ (text/plain)
Üzenet törlése
Válasz az üzenetre
Szerző: Dale Farnsworth
Dátum:  
Címzett: plug-discuss
CC: 
Tárgy: Re: perl or sed s/// problem
> > Sed seems to have the same problem. Anyone have any ideas on how I
> > can get this to work? And yes, unfortunately, I need to use the
> > variables.
>
> Try something like
>
> $ sed -e "s|$line|$newline|" file


Yes, this is a common solution to this problem. I've often seen, and
have occasionally used, the control-A character used as a delimiter.
It works fine and control-A is unlikely to occur in text. The challenge
then becomes finding how to enter control-A into a script with your
favorite text editor.

-Dale
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss